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

What is 1/3 of 2 kilometers?
He then asks the participants to verbally describe as many different pictures as possible. In this experiment, the independent variable is
What should you do when planning outdoor activities?
The 4 aces are removed from a deck of cards. A coin is tossed and one of the aces is chosen. What is the probability of getting heads on the coin and the ace of
After World War II, Japan was run by the Supreme Allied Commander for the Pacific, _____. A.General Dwight Eisenhower B.Emperor Hirohito C.Lee Kuan Yew D.Genera
Which of these is not usually part of the musical theater apex?
Which statement about anaerobic exercises is true? You should leave at least a day between anaerobic exercises to let muscles rest and heal. Anaerobic exercise
Solve for x: one over eight (8x + 15) = 24
Description of heorot from the text battle with grendel
Can someone help me please And please show your work