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.
I would say the variables names could be improved.
Feels good when my solution matches the top one.
Many below are likely more efficient, but it feels nice anyway.
This might be slower, isn't it? Counter fn iterates str 5 times.. oh, never mind. it's just O(N),,
Thanks for your replies. I'm new to Python, so I didn't know that.
Agreed...no imports required. :)
If you use Math.sqrt,it don't have to use import!
Thanks for the kind reply.
Ok :) But the kata's purpose is not just to replicate pythonic "range" method.
The "destination" element of a sequence is not included in the list in python.
Example, range(5,10,1) = [5,6,7,8,9]
So I was a little bit confused at first.
So, what do you think should be fixed?
It's not consistent with our knowledge of generating sequences in Python.
This comment is hidden because it contains spoiler information about the solution