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.
well done
crucial to ensure that such conciseness does not come at the expense of code readability.
Python coerces any non-zero value to
True
in logical expressionsPlease add the
Spoiler
flag when posting solutions. I added it for you here.This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
How? It reads "Return the string 'Odd' if the number is odd or else return the string 'Even'. Almost can't get more readable than that.
This is poor self documenting code because it's not simple to read.
Oh thanks bro I think I got it.It's my logical error in that condition.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
True and 1 are the same thing.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution
Exactly, thanks for the headsup
Loading more items...