Question: I think I have created this program correctly in that it will calculate the number of hours, minutes, and seconds from a user input of

I think I have created this program correctly in that it will calculate the number of hours, minutes, and seconds from a user input of total seconds from all of the videos and information I have read. My problem is I don't quite understand what all the symbols mean when it comes to the // and whether it's supposed to be / or //? What does the % symbol do? Lastly, what does my first print really mean? Thanks for your help in advance. I just don't want to get to the test and not understand what all this means in Python.
ILLUMPULAUPY PJOULUM print("This program will convert the total seconds input by the user into hours, minutes, and seconds.") #Time Assignment time = float(input("Input time in seconds: ")) #Number of seconds to later input by user hours = time // 3600 #Formula to find the total hours time %= 3600 minutes = time // 60 #Formula to find the total minutes time %= 60 seconds = time B print("h:m:s-> %d:%d:%d" % (hours, minutes, seconds)) #First print
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
