Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
the else: is unecessary, if you return something in the condition, then the program will stop there, if not, it'll go on to the other return without the need of an else.
smart way
how did you know you should loop it?
better luck next time, cheers
@_davidos That list you are referencing doesn't even mention seconds, which is where the error lies, so I am not sure why you keep mentioning it.
The problem is due to how your reference solution handles floating point numbers. I've published a fork against your solution, try run that and see for yourself
yea. Got a lot of mistakes and its a duplicate. Ill take it down
yea ik. Ill also take this Kata down bc. i recognised its just a duplicate
1/100-th of an hour is 36 seconds, not 35 seconds. With such obvious errors it can't be good.
Edit: nevermind, @Coderator's already pointed this out while my browser tab for this page was sitting open for ~10 minutes.
oh yea ... i think they rounded in the list here: https://www.uh.edu/human-resources/payroll/time_conversion_chart_minutes_to_decimalhours.pdf
0.01 should be equal to 0:00.36
Because 1.00 is simply a hour which is equal to 3600 seconds.
3600 / 100 = 36 seconds.
How does
0.01
of an hour make35 seconds
?? There are exactly3600
seconds in an hour, correct?0.01 * 3600 == 36
I don´t know whats wrong ... it all should be good ...
Example on 8.11:
8.00 = 8:00.00
0.10 = 0:06.00
0.01 = 0:00.35 (0.02 would be one minute. So 0.01 is half a minute)
https://www.uh.edu/human-resources/payroll/time_conversion_chart_minutes_to_decimalhours.pdf
https://www.codewars.com/kata/55e2adece53b4cdcb900006c/python
Solved. Thanks for the info again
Sry. I didnt found any Katas like that one. The problem with wrong decimal should be right though...
Loading more items...