
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
- 20 Essential MySQL Queries for Managing Your Database
- Python Web Development: Frameworks and Applications
- A Beginner’s Guide to Machine Learning Algorithms and Their Applications in Python
- Python Game Development Libraries: A Beginner’s Guide to Pygame, PyOpenGL, and Panda3D
- How to convert Infix expression to Postfix expression using stack in python