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.
good one
That a very interesting solution you have provided here, really made me think more efficient
this solution will break if you pass as input not a string but a int
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
good answer
The way I come to these solutions just to be absolutely humbled by basic math.
That's another nice approach
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.
This is a good example of why it's important for a Python, and coding, noob such as myself, to go beyond the glitter.
I want to thank all those who commented concerning runtime, etc. It's helps a noob like me to stay grounded.
was like my code is clean untile i saw this
Loading more items...