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

The diagram below shows the reaction between iron oxide and carbon that produces iron and carbon dioxide. The reaction takes place in a closed system. What is t
why are there political battles over the budget​
Mrs. Clark's plant is 4/3 4 inches tall. It is 1/7 8 inches taller than Jimmy's plant. How tall is Jimmy's plant? Enter your answer as a simplified mixed number
To what extent do interest groups and lobbying advance (help) or harm democracy?
Help please! Due today
Explain Mr. Browne's September Precept.
How is every ones day going?
Help please!! Due today
What check by the House of Representatives formally accuses a Supreme Court justice of “wrongdoing”? A. filibuster B. impeach C. override D. pardon
Jarad, the track star, ran the 88 yards in 10 seconds. How fast is this in miles per hour?