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.
Hi @codeRenk, you should be able to display the full list of itmes to the stdoutput if you wish to see it. You shouldn't add or alter the items list, only the quantities. Hope this helps.
Is there a more complete Items array I'm missing? One of the tests is about "Cheese and Onion Crisps" being out of stock, but that isn't in the array given in the instructions. Are we supposed to add items to the array as we go?
Very good kata! A little trickier than I thought it would be and I learned a bit about python math and a diferent way of configuring a return statement. Thanks!
This comment is hidden because it contains spoiler information about the solution
Hmm,:?, I actually had overlooked the puzzle tag. I have updated and added it.
Seen and approved! Thank you!
When the score is 257,why allergies are eggs instead of cats and eggs?
I was confused about how the score make up?
Why the score can be 1000?
PHP version!Cheers
I concur, it should be used more often for this kind of neat katas :)
@BrianLusina you have made cool kata,thanks!
IMO add puzzle tag ;D
Noted. Crystal translation approved.
Nope, just the same error message and the same type of exception is thrown for each data type that is not an integer.
Noted and updated. Thank you
The second example should be:
Allergies(255).allergies()
this way the description don't give any hints about the implementation.
In python the instruction example says says:
allergies = Allergies(0)
allergies.is_allergic_to('peanuts') = True
In the test it says:
allergies = Allergies(0)
allergies.is_allergic_to('peanuts') = False
Loading more items...