kelbeyhuebner1864 kelbeyhuebner1864
  • 10-11-2020
  • Computers and Technology
contestada

Write a Python script that prompts the user to enter a number of seconds. Then, calculate the number of hours and minutes and print the result

Respuesta :

Cytokine
Cytokine Cytokine
  • 10-11-2020

secs= int(input("Enter a number of seconds: "))

if secs >= 3600:

   hours = (secs/60)/60

   print("There are {} hour(s) and {} min(s)".format(hours,((hours*60*60)-secs)/60))

else:

   mins = secs /60

   print("There are {} min(s)".format(mins))

I hope this helps!

Answer Link

Otras preguntas

Match each of the inequalities to their appropriate graph. PLS HELP!
A species of fish was added to a lake. The population size P() of this species can be modeled by the following function, where t is the number of years from the
Help i think this is the answer but im not sure plz help (look at photo below)
What is the sum of all of the integers from -5 to +2?
Which of these BEST describe religion in ancient Egypt and ancient Mesopotamia? Monotheistic Polytheistic Buddhism Christianity
What is the domain of y=2x-6?
When did the idea of the flood finally frighten Marmaduke
Alright easy points! If you get it right you get brainlyest
Which one of the moons in this picture shows the position during the full moon?
If f(x) = 2x - 2 and g(x) = x}, what is (gºf)(4)?