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.
elif...:continue
Reverse which conditions? Each branch handles a different case, the middle elif block handles the double rotten case. Replacing continue with pass would be equivalent, but the block is required and I'm not sure where you're suggesting I move it to.next(iterator[, default])
, good to knowpacked
in the else clause is appending. Theapples
variable is iterated through, but only forward from the current position until a complementary box is found which avoids looking backward in thepacked
list or looking through the whole remainingapples
list.