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 8.517 in word form
Why might two scientists working on the same problem draw different conclusions
Which of the following is a parent function? A. f(X)= 4x^2 B. f(X)= 4^x C. f(c)= e^3x -2 D. f(X)= -2^x+1 need asap!!!
How do you simplify?
ano ang mga input sa paggawa ng sapatos ?
Which best describes the relationship between colonists and American Indians in the early days of the Georgia colony?
in order to make an inference about a text you need to
What is one way Feudal Europe was different than Feudal Japan? A. The European system was based on a lord and vassal relation. B. Warfare was common a
Microsoft and google have created large networks known as ____ to provide free or low-cost internet access to area residents
Simplify -2(5+-4s+6t)+-5s+t