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.
fixed
No mention on how to re-word the description for more clarity after 2 years, closing.
Not a valid suggestion, closing.
but when you return 0 or other number python will return that's number not a boolean value ?
odd + odd = even
even + even = even
odd + even = odd
================
0 = False
any number = true
The way I come to these solutions just to be absolutely humbled by basic math.
That's another nice approach
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
0 = False and any other number is True .. perfect
This comment is hidden because it contains spoiler information about the solution
It is exactly the opposite, 0 is falsy, and all other numbers are truthy.
This comment is hidden because it contains spoiler information about the solution
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.
was like my code is clean untile i saw this
Loading more items...