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.
Approved fork
Approved
as usually. it's difficult to make intresting task, so people trying to make more mysterious task, but as was mentioned in other Kata, trying to understand what people really want you to do, is part of the job) so from that perspective good kata) remember 7 red lines)
I agree. True OOP work.
Sample tests are wrong, change
Test.assertEquals
forassert.strictEqual
to fix them.On Codewars,
8 kyu
means "beginner level" and1 kyu
means "proficient level". So if you'd like to challenge yourself, feel free to give those1 kyu
s a try ;-)My solution passed because I was looking to find the wording for the error message when the value for color or flavor was wrong.
Approved!
Thanks!
I feel you man... i wasn't expecting to spend as much time as i did on this task...
No problem. Search about "shallow copy" and "deep copy" in Python and you'll find everything you need to understand how it works.
The problem is that reference solution operates on the list after you modified it (I've just raised an issue about that). With just making a shallow copy of the input your code passes (you are not doing it currently,
no_sides
is just another pointer to the same object).Thanks. A few examples (even just one actually) are enough if they reveal a problem. I don't have time to check it now, but, once again, if there is an issue it should be raised as such and the kata should not be approved without fixing it.
Please provide clear examples, with logs, etc. If it is true then it should be raised as an issue, which would (legitimately) prevent the kata from being approvable.
Loading more items...