Ad
  • Custom User Avatar

    Great Kata but I suggest you add some random tests... ^^

  • Default User Avatar

    Wonderful Kata...Great job...loved it ^^

  • Default User Avatar

    .

  • Default User Avatar

    You're not the only one getting that error, i'm almost certain it isn't from my code and i'm not doing very well finding it's source.
    Everything works fine in an IDE but in codewars...idk.
    Thanks for letting me know ^^

  • Default User Avatar

    I better get going then...i never knew i missed out on so much XD
    I'm still a beginner so i've got a long way to go
    Thanks for the heads up...i'll reply again when i'm done

  • Default User Avatar

    .

  • Default User Avatar

    I've fixed the True and False as valid parameters issue.
    The tests do check if the second parameter is greater than 170, it's just that i assigned a list with random invalid values and the tests would get a random element from it so there is a slight chance it would miss on the element where the value is greater than 170, i'll find a better way to do that.
    As for the errors during the random tests, they only seem to occur with your solution but i'll look into them.
    Thanks for pointing me in the right direction ^^

  • Default User Avatar

    Your welcome...and thank you for the feedback ^^

  • Default User Avatar

    Thanks man
    At first I tried that but it still didn't work until i changed the version of python to 2.7.6

  • Default User Avatar

    Hey, I'm developing a Kata(my first) in Python, and I want to include the same square symbol in your Kata, since it's a non ASCII character whenever I run anything with the symbol in a string without any special configuration an error pops up.
    Can you help me out with what I should include in the preloaded section of the Kata editor in order for this not to happen.
    Thanks in advance ^_^

  • Default User Avatar

    Thanks for replying so quickly but I unfortunately you haven't fixed the problem I proposed.
    Owing to the fact that the tests you prepared are static, I believe that you made a mistake when setting them.
    The first test always returns with an error indicating that the tupil expected contains the second element of my code's output as it's first along with another smaller number as it's second.
    Example ==> My code's output > [99975, 99970]​ - Expected output > [99970, 99969]
    99975 > 99970 > 99969
    asahat also reported this problem so I believe it is no coincedence.
    Ty again.

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

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

  • Default User Avatar

    I believe the sensei of this kata made a mistake as he reversed the output expectations of the tests...
    Please fix soon, I got it by luck but many others won't :D