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.
not an iterator. if you leave the braces you have a generator expression ;-)
simple change, but bigger meaning: with the braces you create a list, save it into memory and sum that afterwards. without the braces the list will be generated and not stored in memory.
that won't be a problem with small lists, but with bigger ones a generator expression is more efficient
Thanks, you are right. Iterators are definitely better.
This comment is hidden because it contains spoiler information about the solution