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.
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!
Please, don't post solutions in Discourse. If you want to discuss your solution do it in Solutions.
This comment is hidden because it contains spoiler information about the solution
You're doing some things right, but all mixed up so it won't work. Try doing the things one step at a time, and use print to debug your code. For instance, create a list of words first. Once that works, do another simple task and so on.