Programming Examples
Python program to print number of seconds in year
Write a python program that calculate and prints the number of seconds in a year.
Solution
#Python program to print the Number of seconds in Year
days=365
hours=24
minutes=60
seconds=60
print("Number of seconds in a year : ",days*hours*minutes*seconds)
Output
Number of seconds in a year : 31536000