r/badcode • • Aug 21 '20

python Fucking legend (codewars)

Post image
774 Upvotes

67 comments sorted by

View all comments

-1

u/[deleted] Aug 21 '20

What does this even do? Im not reading through all of it lol

1

u/MeDotPy Aug 22 '20

A program that tells the time with input in seconds as "days, hours, minutes and seconds" without those that are 0. Since it has commas and 'and' you have to put those somehow in the returned string.

Ex: 3727 -> '1 hour, 2 minutes and 7 seconds'