[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot] 2023-10-10 01:46:45 +00:00
parent a078c2a9c0
commit a02e1f780b

View File

@ -25,9 +25,13 @@ def time_conversion(sec:int) -> int:
return days, hours, minutes, seconds
if __name__ == "__main__":
import doctest
doctest.testmod()
seconds = 256 # assign the input here
print(f"{time_conversion(seconds)[0]} days {time_conversion(seconds)[1]} hours\
{time_conversion(seconds)[2]} minutes {time_conversion(seconds)[3]} seconds")
print(
f"{time_conversion(seconds)[0]} days {time_conversion(seconds)[1]} hours\
{time_conversion(seconds)[2]} minutes {time_conversion(seconds)[3]} seconds"
)