Write a program in python that calculates and prints the number of seconds in a year
Answers
Answered by
5
Answer:
Python is an interpreted, high-level, general-purpose programming language.So it is very easy to write and implement programs using python because it doesn not require much of syntax or much of initialization process.
Python Code : -
days = int(input("Input days: "))
sec_day = 3600 * days
print(sec_day * 365)
So this takes the input of the number of days and prints the answer or the seconds in a year.
Answered by
0
Answer:
seconds=365*24*60*60
print("Number of seconds in a year is:",seconds,"sec")
Explanation:
Similar questions