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.
The most important thing here is the list comprehension (sum(int(x)) for x in str(value)
It is nothing but a for loop, you will write hundreds of for loops until it just clicks that what you're trying to do is this essential form, and then it comes naturally.
the more you see it the more obvious it gets
I am still new to python but I wonder how does someone think about these one liner clean code, does it come after few iterations or they pop up just like that :)