Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
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
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...
The lenght allowed in the shown tests and in the actual tests is different, you might want to check that
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?you're right, my bad. sorry for all the
trouble
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...
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)
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.
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
This comment is hidden because it contains spoiler information about the solution
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
Thanks!
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
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...
This comment is hidden because it contains spoiler information about the solution
Loading more items...