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.
Suggestion to include test cases without spaces before punctuation marks, for example
'Hello world!'
which would becomeelloHay orldway!
. Most current (Python) solutions don't seem to cover this with the simpleisalpha()
check.Hello! I believe the issue with your solution is in line 5: the = operator.
Your code would run the while loop once extra when p0 exactly equals p, so your n would be one greater than required in those cases.
Hope that helps!