mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
This commit is contained in:
parent
a078c2a9c0
commit
a02e1f780b
@ -25,9 +25,13 @@ def time_conversion(sec:int) -> int:
|
|||||||
|
|
||||||
return days, hours, minutes, seconds
|
return days, hours, minutes, seconds
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
import doctest
|
import doctest
|
||||||
|
|
||||||
doctest.testmod()
|
doctest.testmod()
|
||||||
seconds = 256 # assign the input here
|
seconds = 256 # assign the input here
|
||||||
print(f"{time_conversion(seconds)[0]} days {time_conversion(seconds)[1]} hours\
|
print(
|
||||||
{time_conversion(seconds)[2]} minutes {time_conversion(seconds)[3]} seconds")
|
f"{time_conversion(seconds)[0]} days {time_conversion(seconds)[1]} hours\
|
||||||
|
{time_conversion(seconds)[2]} minutes {time_conversion(seconds)[3]} seconds"
|
||||||
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user