Important SME Tools: Payroll Hours Calculator & Time Sheet Template

Write a python program that calculates and prints the number of minutes in a week,month and year

# python program that calculates and prints the number of seconds in a week,month and year.
Hour = 60
Day = 24 * Hour
week = 7 * Day
month = 30* Day
year = 12 * month
print ( "number of minutes in one Hour = ",Hour )
print ( "number of minutes in one day = ",Day )
print ( "number of minutes in one week =",week )
print ( "number of minutes in one month =",month)
print ( "number of minutes in Feb month =",28 *Day)
print ( "number of minutes in months having 31 days =",31 *Day)
print ( "number of minutes in one year =",year)


Output 

>>> %Run 'min in week,month,year.py'
number of minutes in one Hour =  60
number of minutes in one day =  1440
number of minutes in one week = 10080
number of minutes in one month = 43200
number of minutes in Feb month = 40320
number of minutes in months having 31 days = 44640
number of minutes in one year = 518400



Latest post
<

Leave a Reply

Your email address will not be published.