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


You can understand by Watching video :-



Answer :-

print ( "for non leap year = " ,60*60*24*365, " , for leap year = ", 60*60*24*366 )

Output :-

for non leap year =  31536000  , for leap year =  31622400
>>>

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post