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.
Same. Best platform for learning imo. Mad I didn't sign up sooner.
I was thinking the same thing. Kind of just started learning python, I hope I could do that someday :')
I realized our answers were similar here, I mean, most of them are, but still xD
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.
Loading more items...