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.
You're welcome. Marking this as resolved, then.
@Mednoob thank you it helped me.
Code fail is because merely the chars
sort
appear in the code (it doesn't even matter whatever chars may directly surround them, or whether they're in a comment), same withsorted
.Meanwhile, this should (probably) stand as an
issue
for two reasons:NameError: name 'test' is not defined
means the kata needs to be Python updated (afaik).Cheater. Do not use {}
does not inform the user specifically of the reason for fail@beshoynabeih try changing
sorted_array
to something else. I think the anti-cheat wrongly flagged your solution because of that.I did not use any function or method
You're using something the kata considers "cheating" - probably
list.append()
if I had to guess. Unfortunately the error message is itself bugged. Hint: You can finish this kata with no calls to any methods other than the one you're defining, if you choose to.I have the same problem. Have you found a solution?
I have this error??
Traceback (most recent call last):
File "/workspace/default/tests.py", line 1, in
from solution import *
File "/workspace/default/solution.py", line 1, in
from preloaded import *
File "/workspace/default/preloaded.py", line 22, in
test.expect(False, "Cheater. Do not use {}.".format(check.group()), allow_raise=True)
^^^^
NameError: name 'test' is not defined
This comment is hidden because it contains spoiler information about the solution
think about two pointers