write a program that calculates how many seconds there are in a week, if a week is 7 days. Print the result on the screen.
Answers
Answered by
0
Answer:
Explanation:
def time( ):
sec = int( input ('Enter the number of seconds:'.strip( ))
if sec <= 60:
minutes = sec // 60
print('The number of minutes is {0:.2f}'.format(minutes))
if sec (<= 3600):
hours = sec // 3600
print('The number of minutes is {0:.2f}'.format(hours))
if sec <= 86400:
days = sec // 86400
print('The number of minutes is {0:.2f}'.format(days))
return
Similar questions