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.
very rare cases
excelent solution, but recursion in this case can lead to RecursionError: maximum recursion depth exceeded in comparison in very rare cases.
Please use appropriate markdown formatting when posting code. See https://docs.codewars.com/training/troubleshooting#post-discourse.
No, it shouldn't. If your function doesn't pass the tests, then it shouldn't pass the tests. Next time, please use the
Question
label as theIssue
label is for reporting problems with the kata.This comment is hidden because it contains spoiler information about the solution
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'