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.
It will not work for:
$this->assertEquals([], solution(""));
I get the same error even without modifying the input
Don't modify the input.
The user can modify the input in Python (at least).
This comment is hidden because it contains spoiler information about the solution
I got this:
Traceback (most recent call last):
File "main.py", line 49, in
tests()
File "main.py", line 38, in tests
testw[randint(0, 9)]=['n','s','w','e'][randint(0, 3)]
IndexError: list assignment index out of range
Because in task was written to remove strings - not to keep only int.