Ad
  • Custom User Avatar

    You can see there also the test it fails: test.assert_equals(snail([[]]), [])

  • Default User Avatar

    It's great that you ask for help and provide something to use: the error messages. They tell you that in line 11 you are trying to access a value at an index that is invalid for the container from which you are trying to access. I can't tell whether it is jmin that cannot be found in snail_map or whether i cannot be found in snail_map[jmin], but that is how you can figure out what's wrong. I hope this helps you debug. Questions?

  • Custom User Avatar

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

  • Custom User Avatar

    Start by printing the input to see which input makes your code fail.

  • Custom User Avatar

    From the code I can see, wrong datatype and a string is not an instance of int, so your code returns None. There is no long type in Python either (at least since 3.x). The function's name should be descending_order instead of ordenar too.

  • Custom User Avatar

    Uh, no idea then. We cannot help, we are sorry.

    Unless you show. Your. Code. Se we can, you know, fix the kata.

  • Custom User Avatar

    Probably:

    • Printing instead of returning
    • Different data type
  • Custom User Avatar

    Kata is OK, and your code is most probably incorrect. Show us your code and we will tell you what's wrong with it.

  • Custom User Avatar

    115,370 completions say otherwise. Can you elaborate which test case you think is wrong?