Why am I getting a syntax error on the print function lines? I've Tried it without the end=' ' in the brackets but still not working. I want to have all the print functions on one line.
#This program will convert a given amount
#of seconds into hours, minutes, seconds format
total_time = int(input("Number of Seconds"))
hours = int((total_time//(60*60)))
minutes = int(((total_time/60)-(hours*60)))
seconds = int((total_time-(hours*3600)-(minutes*60))
print('There are', end=' ')
print(hours, end=' ')
print('hours', end=' ')
print(minutes, end=' ')
print('minutes,',end=' ')
print('and', end=' ')
print(seconds, end=' ')
print('seconds', end=' ')
print('in', end=' ')
print(total_time, end=' ')
print('seconds', end=' ')