Math, asked by SinghAmitabh12345, 1 day ago

Write program to assume total duration in seconds of any task as int and print the the total duration



give the correct answer no irrelevant answers​

Answers

Answered by bhabatoshpanda30
5

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))

Similar questions