Answer:
def howLong(time):
time = int(time)
day = time // (24*3600)
time = time % (24*3600)
hour = time // 3600
time = time % 3600
minutes = time // 60
time = time % 60
seconds = time
print("Time is {}days, {}hours, {}minutes, {}seconds".format(day, hour, minutes, seconds))
howLong(70000)
Explanation:
The programming language used is python 3.
The function howLong is defined and takes one argument. this argument is converted to an integer.
Two types of division are used:
1) Floor division(//): It returns the quotient answer, in which the digits after the decimal points are removes
2) Modulo division(%): Returns the remainder value.
The day, hours, minutes and seconds are evaluated using the modulo and floor division.
The result is printed to the screen.
A picture has been attached for you to see how the code runs.