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.
Strange that there is a line break at the end of the string where it is not needed.
This comment is hidden because it contains spoiler information about the solution
python isnt compiled, its interpreted
how this thing is working!!!
so good format function not use regular expression
youve got to be kidding me
bitwise operation, 'odd' is number & 1
which is? genuinely asking.
Am I the only one that finds this sort of one-line code unnecessarily messy?
Like, ok cool, it's in one line, but barely readable...
why? is correct if you use the % == 0
I usually prefer the code that is easy to understand to the code which is fast, unless there are specific requirements for performance. Thanks for pointing this out anyway, makes me feel a bit better. ^_^
I should really remember that 0 is false
Why? Some people might not know about one-line if/else statements until they see this. Some may not know how to check for even numbers. If you think this is pointless, dont do a 8kyu kata.
Actually is multiplied by 0.5 liters of water.
Now you can easily change the hard-coded 0.5 to the new amount of water in the variable and the code will be the same.
Using divide by 2 just change the amount of water to 750ml and all code needs to be refactored.
This comment is hidden because it contains spoiler information about the solution
Loading more items...