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.
this is awesome
Nice one !
This one actualy seems pretty good! But it also works without square brackets. So I really didn't get, what we use them for? Can someone please clarify this for me?
yes
I think, this is the best (short and quick understanable) solution, just if you know what the "floor division" is!
Magick
This comment is hidden because it contains spoiler information about the solution
Assumes the string contains no tabs, newlines or repeated spaces.
I think I have the most concise answer to this kata! Please vote up my solution if you agree :)
Read the PyDocs for dict.get, here https://docs.python.org/2/library/stdtypes.html
Also, make sure you understand Python list comprehensions.
How can this lambda function serve the purpose??
Can anyone explain what's happening in the above code!
I don't see it's significance here. Why is it used by the way?
Can you explain in detail please.
Yes, It is faster!