Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions

Question

4. Devise an interview strategy from the interviewers point of view

Answered: 1 week ago