Computer Science, asked by sonu555, 1 year ago

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

Answers

Answered by lTheDreamCatcherl
4

How to convert seconds to hours, minutes, and seconds in Python

print(seconds_input)

conversion = datetime. timedelta(seconds=seconds_input) Convert seconds to timedelta object.

converted_time = str(conversion) Convert timedelta to a string.

print(converted_time).

Answered by prakharagrawal6055
0

Answer:

seconds=365*24*60*60

print("Number of seconds in a year is:",seconds,"sec")

Explanation:

Similar questions