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.
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 👍
fixed
we're friends irl and i asked him to test my kata
thanks
i don't know how tbh