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.
nope
I didn't realize that. Thank you for pointing that out.
funny!
but the plural of leaf is leaves.
well, the task is to build a "tree", so... ;o
This code is on a higher plane of reality.
Hello,
I submitted same solutions three times. I wanted to delete first 2 but I couldn't do it. Is it possible ?
I wanted to use a side effect but I didn't know (forgot) that bool(None) returns False.
Your solution is really elegant. Thank you :)
s.add(y)
returnsNone
, which is falsey, soor
returns its right operand -y
. If you want to learn why this is happening, you should read about how boolean operations work in Python.How did you use "s.add(y) or y". I couldn't understand why it worked. Could you explain ?
/edit.
I understand. None or < variable > , returns the < variable >.