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.
It is exactly the opposite, 0 is falsy, and all other numbers are truthy.
In Python a value of 0 is considered True, while all other numbers are evaluated as False.
This solution certainly gets the job done with minimal characters utilized, but it seems prone to cause needless confusion.
Ditto
Yes. It would be pretty strange if it did not always return the same thing.
This comment is hidden because it contains spoiler information about the solution
return breaks the flow of execution so the else block is extraneous in this case. if the number is even, execution will stop after number * 8. otherwise it will continue to run until it hits the next return statement