Pure Programmer
Blue Matrix


Cluster Map

Project: Seconds in a Year

Write a program that computes the number of seconds in a year. Use named constants for the various factors you need like SECONDS_PER_MINUTE or MINUTES_PER_HOUR. Our Gregorian calendar year is 365.2425 days long.

Output
$ python3 SecondsPerYear.py Seconds per year: 31556952

Solution