python-by-example-150-chall.../challenges1-11/challenage-009.py

6 lines
216 B
Python
Raw Permalink Normal View History

2019-07-17 14:56:46 +08:00
days = int(input('Enter the number of days : '))
hours = days*24
minutes = hours*60
seconds = minutes * 60
print('In {0} days there are {1} hours , {2} minutes and {3} seconds'.format(days, hours, minutes, seconds))