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.
Thank you very much for your response! But I still don't really get the point. I know this is a smart way, but I don't know why it works. In other word, why does only returning a function works? (ultimatly we just want to return a value right?) And why no argument is used in this lambda?
It's a smart way to use the attributes defined in __init__ as functions (that's what the kata requires, which is not very pertinent since they'd rather be considered merely as properties entirely defined at the creation of the instance; it does not make much sense to have to calculate them again at each function call).
Why lambda is used?
I actually don't know why this can work for the string with double space.