Ad
  • Custom User Avatar

    Fantastic kata, that's what I need. I like the immersive description.

  • Custom User Avatar

    i actually did it with the list, i didnt even know abt dictionary

  • Custom User Avatar

    Not level 8 in C...

  • Custom User Avatar

    Good on you for persisting - I know the feeling so well :-)

  • Custom User Avatar

    Thanks for your message. I let the frustration get the better of me. After leaving it for a day and coming back to it I was able to solve it. Great reminder not to give up and think of another solution if the initial idea isnt working.

    Thanks again!

  • Custom User Avatar

    Your code is wrong. If you print your results, you'll see that you are always returning the same value.

    If you need help completing kata, I recommend joining the codewars discord and asking in the #help-solve channel.

  • Custom User Avatar

    I don't know what I'm doing wrong but I am failing the test. I've tried it on pycharm and it works. My OCD is going to frustrate me I can't complete this one. Not putting anymore time into this one if it works on Pycharm.

  • Custom User Avatar

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

  • Custom User Avatar

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

  • Custom User Avatar

    This kata was published long time ago, back then the userbase was not known... Also the author published the kata, not CodeWars official, so they would not know how the audience distribution would look like, statistically speaking ~~

  • Custom User Avatar

    The website has a large audience in Scandinavia, yet swedish is wrong and both norwegian written languages are missing. 🙃

  • Custom User Avatar

    не пишите var, это уже не актуально, плохая практика!

  • Custom User Avatar

    I guess 8kyu for the long way, but right way is definitely at least 7kyu

  • Custom User Avatar

    the code also works fine in visual studio code, but does not work on when i test it on codewars

    this is a common expression but almost always seems to mean that you didn't do the same thing locally. use the same test case as what failed, make sure it's called correctly, or failing that, debug it in the codewars environment instead

    to clarify it is saying "found" has no value

    don't paraphrase error messages, because when you do then you can only relay the things you noticed about it which doesn't help when you're missing something about it. and "it is saying" - what entity is "it"?

    I'm guessing you mean:

    UnboundLocalError: cannot access local variable 'x' where it is not associated with a value

    here's a simple program with an obvious problem in it that produces that error message:

    def f():
        if x:
            pass
        x = 3
    
    f()
    
  • Custom User Avatar

    to clarify it is saying "found" has no value

  • Loading more items...