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/27 in a decimal
7/18-5/18 in simplest form
Write 75 over 100 in simplest form
Solve the inequality. Explain all steps and identify the properties used. n __+5>4 -3The n and a line underneath it and then the -3 is supposed to be n over
2 diamond rings and 4 silver rings cost $1440. a diamond ring and a silver ring cost $660. how much does a silver ring cost?
Which producers can be found in polar ice region
foster is centering a photo that is 3 1/2 inches wide on a scrapbook page that is 12 inches wide. How far from each side of the page should he put the picture?
Paloma can run the 100-meter dash in 16 1/5 seconds. Savannah best time is 19.8 seconds. How much faster is Paloma than Savannah in the 100-meter dash
which is bigger 7/8 or 0.78
Kareem spent $8 less than Marco at the mall. Kareem spent more than $15. How much did Marco spend?