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.
excelent solution, but recursion in this case can lead to RecursionError: maximum recursion depth exceeded in comparison in very rare cases.
I propose add test cases with 3 spaces, and 4, 5 spaces between words. Almost all solutions do not save 3 spaces between words.
Becuase it test case present not bool values. Try this code
sum([True, None])
and you will getTypeError: unsupported operand type(s) for +: 'int' and 'NoneType'