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
Please use backticks to format code:
That being said, Codewars uses Python 2, not Python 3. In Python 2,
range
actually creates a list, whereas in version 3range
acts the same as Python 2'sxrange
. Use the latter to get rid of the memory error.