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.
Well dang. I was unaware of the rotate function. Thanks for letting me know!
The description of this kata should really include that 'n' can be 0.
Copy your code, click Reset, paste it and try again. Make sure 3.8 is the selected Python version in the trainer.
@poubr
Yes, it's annoying when people think reading the troubleshooting is going to solve the problem when there is clearly a problem with the test itself. I'm glad you got something to work, though!
Hello!
I'm getting an error that I believe has nothing to do with my code. The following is the error.
Traceback (most recent call last):
File "tests.py", line 2, in
from solution import repeat_str
ImportError: cannot import name 'repeat_str' from 'solution' (/workspace/default/solution.py)
Hi. Please consider the following:
I advice you to read carefully the documentation: https://docs.codewars.com/training/troubleshooting/
This comment is hidden because it contains spoiler information about the solution
Randomness. There were only 7 tests to pass, so since it is a 50/50 shot, it would be expected to take 128 attempts before it returned the correct result for each test. Either this person got lucky, or this person is very patient.