Computer Science

Write a Python program that calculates and prints the number of seconds in a year.

Python

Python Funda

61 Likes

Answer

days = 365
hours = 24
mins = 60
secs = 60
secsInYear = days * hours * mins * secs
print("Number of seconds in a year =", secsInYear)

Output

Number of seconds in a year = 31536000

Answered By

34 Likes


Related Questions