Ad
  • Custom User Avatar

    Well dang. I was unaware of the rotate function. Thanks for letting me know!

  • Custom User Avatar

    The description of this kata should really include that 'n' can be 0.

  • Custom User Avatar

    Copy your code, click Reset, paste it and try again. Make sure 3.8 is the selected Python version in the trainer.

  • Custom User Avatar

    @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!

  • Custom User Avatar

    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)

  • Custom User Avatar

    Hi. Please consider the following:

    • Your code not working is not an issue. An issue is a bug in the kata.
    • Use a spoiler flag when you post code somewhere.
    • Use markdown tags to format your code or it's very discomfortable to read, and in Python particularly, unusable.

    I advice you to read carefully the documentation: https://docs.codewars.com/training/troubleshooting/

  • Custom User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.