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

CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online Exam Quiz O Level NIELIT Study material and Quiz Bank SSC Railway TET UPTET Question Bank career counselling in allahabad Best Website and Software Company in Allahabad Website development Company in Allahabad