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.
python new test frameworks
As mentioned by B4B below, this is not well explained (
Also note how fruits in a package are ordered when repacking. Example shown in INPUT/OUPUT above.
)i got it right except... my code can't hande empty boxes. i get "out of range" msg.
any ideas?
This comment is hidden because it contains spoiler information about the solution
Codewars Forums - Kata Best Practices - Have Full Code Coverage
Only having 5 fixed assertions in the entire test suite is unacceptable and far from sufficient to prevent logically flawed and/or hardcoded solutions from passing. You should (1) either increase the number of unique, distinct fixed assertions to at least 20 and including edge cases or (2) even better, write 100+ random tests as per standard Codewars practice and is generally preferred over just a large number of fixed tests.
A near-duplicate of https://www.codewars.com/kata/decode-the-morse-code
Random tests.
Congratulations! You have reinvented the
id
oridentity
function!(It did not really need inventing again, but still ..)