Computer Science, asked by jerry911, 9 days ago

Write a program to calculate and print no. of seconds in a week.
In PYTHON and when you get your answer copy paste the answer.

Answers

Answered by ktuteja2012
1

Answer:time = float(input("Input time in seconds: "))

day = time // (24 * 3600)

time = time % (24 * 3600)

hour = time // 3600

time %= 3600

minutes = time // 60

time %= 60

seconds = time

print("d:h:m:s-> %d:%d:%d:%d" % (day, hour, minutes, seconds))

Explanation:

Answered by samarthkrv
0

Answer:

week = 1

seconds = week * 604800

print("The number of seconds in" , week , "weeks is" , seconds)

Explanation:

Similar questions