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 does vena cava transport?
Definition of non-conventional energy sources.
Complete the square t^2+10t=75
Draw a diagram to show how two resistors R1 and R2 are connected in parallel.
Three vertices of a rectangle are (–3, 4), (5, 4), and (5, –2). What are the coordinates of the fourth vertex of the rectangle?          A.
Mention two factors on which the amount of water reabsorbed by the kidney depends.
Write a brief note on lymphatic system in human being.
What is the percent yield of ferrous sulfide if the actual yield is 220.0 g and the theoretical yield is 275.6 g
how does a bird fly?
what wilhappen if fertillization is doone when no egg is released,