SECS_PER_HOUR = 60 * 60 SECS_PER_MIN = 60 totSecs = int(input('Enter a number of seconds: ')) hours = totSecs // SECS_PER_HOUR secs = totSecs % 60 mins = (totSecs - (hours * SECS_PER_HOUR)) // 60 print('Here is the time in hours, minutes, and seconds:') print('Hours:', hours) print('Minutes:', mins); print('Seconds:', secs)