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.
looking at other's solutions i feel retarded. I always overthink things...
Thanks for your post.
You could use nested function when possible.
Happy you found the reason :-)
solved, was being retarded. Didn't notice that i defined a function called range, which your code tried to call instead of python's range. Thanks for your patience.
used 3.4.3. I can send you my code if you want.
OK. I see the line in the tests. But AFAIK range in 3.x takes 2 arguments as well as in 2.7 so I don't understand why you got this TypeError. I tried different solutions with the different proposed versions of Python (2.7.6, 3.4.3, 3.6.0) for this kata and had no problem. Which version did you use? As I can see CW proposes the 3.4.3.
Small note: no need to downvote my post. It doesn't make things easier.
Traceback (most recent call last):
File "main.py", line 75, in
randomTests()
File "main.py", line 70, in randomTests
for x in range(0, 50):
TypeError: range() takes 1 positional argument but 2 were given
i've no such code in my solution.
454 guys passed the Python kata; I just tried several solutions and had no problem. So I think it is not an issue of the kata but maybe a problem in your code.
Tests for this kata fail. randomTests.py for x in range(0, 50) takes too many positional arguments according to the tracklog, line 70. (maybe python2 vs python3, i wouldn't know.)
Can't submit my answer until it's fixed.