I need to write a program that reads in seconds as input, and outputs the time in hours, minutes, and seconds using python.
seconds = int(input())
minutes = seconds // 60
hours = minutes // 3600
seconds_left = + (seconds - hours)
print(f'Hours: {hours}')
print(f'Minutes: {minutes}')
print(f'Seconds: {seconds_left}')
This is what I'm currently running and it's not getting the desired output. Question in mind uses 4000 as an input and outputs 1 hour, 6 min, and 40 seconds