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.
yikes
Note in Python 3 it should be n // i
The only reason this Python 2 code did not break is that it's only running while n % i == 0, so it happen to be only feeding numbers that divide into whole numbers anyway.
NameError: name 'xrange' is not defined
'xrange' was renamed to 'range' in Python 3 appearently.
Also I would change n /= i to n //= i to more explicity call integer division, tho I'm not certain it matters since it's only running on modulo 0 stuff in the while loop, but normally it would cause some undesired non-integer results.
How's it not a kata issue? I too was surprised a 4 kyu was so straightforward and easy. Searching for katas with "too easy" in comments is a good way to rank up quickly I guess, if nobody's willing to fix the scoring.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
The picture says scissorS and yet the full test suite only tests for scissor (without the s). How dare.