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.
since his sum is already declared 0, it will return 0 if list is empty.
Since sum is declared as 0, in case of an empty list it returns 0. Or am i mistaken?
This is what I think the author was looking for, though you might be missing the part about returning 0 if the list is empty.