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)
▶ RUN

Output/ Explanation:

Number of seconds in a year :  31536000

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad