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

A refracting telescope produces an image using ____?
In the absence of air resistance, the path of a projectile is an
A company's stock was selling at $28 a share. A month later, it was selling at $21 a share. What is the PERCENT decrease.
Factor the expression over the complex numbers. x^2 + 20
Which best describes how computer simulations are used in science? -A)Computer simulations help scientists see very large objects. -B)Computer simulations
What controls when and how fast cells grow and divide?
For g(x) = 4x-9 Find g(x) When X=3 And When X=5 I Need Help Again I Don't Get This One Either!
consider the type of equations 5x+y=31 -3x+4y=37 solve the first equation as y in terms of x like y=.....
Which of the following is not an authoritarian from a government
You and three friends own a paint shop. The shop's profit was $536 in the first month. You always divide the profits equally. In two months, each of you had mad