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.
я в шоке, это прекрасно
3 years ago but this is a solution in python. If you want a solution using a different language, check the solution for a different language. Why should you not use an optimal solution in the language you are practicing in just because some other language can't use the same solution? In fact, if this can ONLY be done in python, that makes it more pythonic by definition which is generally considered a plus by most python afficionados.
This comment is hidden because it contains spoiler information about the solution
Heck, wish I'd thought of that. Nice!
Best!
im so confused man
good one
smart
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
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.
Loading more items...