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.
MDO1988 where did you find that the .setdefault() is faster? i tested it on my pc and i found .get() as faster.
if the key doesn't exist d.setdefault() will insert it with the default value. We don't need/want this behavior for this Kata, therefore d.get() is a better choice here ^^
No, the tests are ok, there is no such test, the test is like this:
Click reset if you see otherwise.
You're welcome, closing the question.
Compare your result with the expected result:
You have some extra spaces.
First of all, thank you for following those instructions, you've done that right.
print
returnsNone
, remove it from your code, return the string.