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.
What's the point of the r? I did basically the same thing except without the r, and it worked fine.
"foobar00" turns into "foobar01" because the end result after the string was incremented was 2, which did not take up both digits. If it was "foobar09", then it would turn into "foobar10", because the result now takes up both zeros which were in the input. In the case of "foobar099", 99 turns into 100, meaning it now takes up 3 digits. In "foobar099", there are 3 numbers at the end, so you would not include the extra 0 after incrementation.
It means you didn't return anything, when you should've returned 42.
I only took a quick look, but treating an array as string looks like a bad idea IMO. Stick to something closer to arrays/lists.
This comment is hidden because it contains spoiler information about the solution
i forgot to delete
import statistics
from a previous attempt it is not neededok 👍
also all identical:
perhaps a bit too friendly?
fixed
we're friends irl and i asked him to test my kata
thanks
Codewars has thorough documentation on authoring a kata, including this on Random Tests.
i don't know how tbh
no random tests