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.
Thanks for catching the typo. Fixed.
No, see issue above.
Done.
The original design of this kata was in Ruby. That design maybe hasn't translated to other languages as cleanly. I don't know Python so I can't really say if the translation used could have been done better, but for this kata having slight variations in the design per language probably is necessary.
I face the same issue. Can author explain this behavior?
thanks. Python is not my first language. So I am still learning... a lot.
this should be fixed now. I put the reference functions into the
describe
block. Please re-check that the tests are now in the proper form.fixed
Oh dear, looks like this kind of scribbles a mad scientist does in movies.
Hi, I just join and see the solutions after I submit that one, and I used the way you say because I was first ask to help on this problem as a math problem (no computer) before the student told me it was for this website.
Mine is longer because I am a full beginner in Python and didn't know about join or enumerate, and just tried to make it simple.
Now, looking at the others solutions, I only see as marked "clever" very short solutions (in lines of code) and before I saw your comment I didn't even see your solution.
Do not use intermediate floats. Closing.
This comment is hidden because it contains spoiler information about the solution
Indeed, nice kata.