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.
This comment is hidden because it contains spoiler information about the solution
duplicate suggestion :)
indentation of the initial solution corrected. I corrected the declaration of the class too and changed the initial setter so that there will be something to do as required...
resolving issue
Seems fixed.
By definition constant values, aren't mutable. Global values doesn't have to be constant.
If it was a constant then I would use tuples or namedtuples.
This comment is hidden because it contains spoiler information about the solution
Yeah, and there could just be two identical dictionaries with the two names, so that
drunken_doodling
would now work, but previous solutions wouldn't be invalidated.The Python 3 tests don't work because they use xrange.
After seeing your comment, I looked over my solution again and made a small change to improve it. The new version doesn't break when the input number is negative (even though there are no tests in the kata with negative numbers).
http://www.codewars.com/kata/reviews/56f6b7cd9b6590d2d80000e8/groups/56fb55766883c74c0700164d
Thank you. Fixed.
Sorry about that. I need to change my .vimrc to use 4 spaces rather than tabs in python.
It didn't let me just edit the translation; it complained about a difference in the description. I tried copy/paste the description from a fresh translation page. It still didn't like it.
I forked my existing translation and replaced all tabs with 4 spaces. I'll go back to part one and check that for tabs as well.
Hey thanks for pointing out these bugs. Sadly, I'm not the author of the python version. I hope @pioraid will see this an correct these issues...
True! Next time you should put the code in an IDE (PyScripter is a light one): it will show you the bug quickly.
Loading more items...