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.
In Python's conditional statements, the terms are evaluated as boolean expressions (
bool()
), and numbers return True for any value that is not 0. Besides,%2
is either0
or1
, which are the equivalent of the boolean valuesTrue
andFalse
.This comment is hidden because it contains spoiler information about the solution
i think != 0 improves readability compared to just %2. Agree on the first point though!