Ad
  • Custom User Avatar

    Is the "handicap greater than 7" line meaning they are better (lower handicap) or worse (bigger handicap)? The tests kinda make it clear, but I think that can be confusing

  • Custom User Avatar

    I just googled that and found a whole new world, thanks for the info.

    I did not know that there was a community centered around solving problems with the least amount of characters...

  • Custom User Avatar

    The lenght allowed in the shown tests and in the actual tests is different, you might want to check that

  • Custom User Avatar

    Just this def c(n): return has 16 or more characters, and this will not be correctly imported by the tests, how are we expected to solve it in less than 32 characters?

  • Custom User Avatar

    you're right, my bad. sorry for all the
    trouble

  • Custom User Avatar

    I don't understand, could you pass the reference you got that from? Thanks.

    It might be that I do not understand the negative index in python as well as I think I do...

  • Custom User Avatar

    What I'm asking for is (in this issue and in the other one) clearer tests and clearer kata (in case it was not obvious)

  • Custom User Avatar

    In python it's natural to use negative indexing... Maybe in the comments embedded in the code could be written, as it's something only in python. I was pretty puzzled when I tried my code and it didn't pass the tests because negative indexing was not allowed.

    In the end, it has to do with how you define the index out of bonds situation. In python out of bonds means that the absolute value of the index is bigger than the lenght, because it allows negative indexing. I think it's a kata issue because of that. The tests do not reflect the expected behavior in this language.

  • Custom User Avatar

    The basic tests shown at the beginning do not show all the methods you're suppossed to test. The only way to find the page_item_count method is to attempt and have the code failing because you had no input that that method needed modification

  • Custom User Avatar

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

  • Custom User Avatar

    Question/Suggestion:

    In python (maybe other languages too) are we supossed to assume all inputs will be integers? or is there a possibility of them being float?

    In the instructions most are integers, but one is float, and in the tests the result is sometimes an int and sometimes a float, but the input is always int, but I'm not sure if we're supposed to return a float or an integer, and if we're fed floats or integers

  • Custom User Avatar

    Thanks!

  • Custom User Avatar

    I'm sorry, but I don't know how to do random tests...

    I'm aware there are similar katas, although from what I've seen they're all more difficult than the one I proposed

  • Default User Avatar

    I find it a bit misleading, because while it asks you to create classes, it does not tell you any characteristics of the classes, I'd love if a bit more specifics were put, because I spent a lot of time thinking of the characteristics the human, man and woman classes should have...

  • Default User Avatar

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

  • Loading more items...