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.
Thanks Glacestrom! i managed to sort it out then and there.
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!
This comment is hidden because it contains spoiler information about the solution
I don't know if i wrongly understood the instructions but here is my issue:
In pycharm(python3.8) my code return the words "gnirts" and "tneserp" as reversed ( since they have five or more characters)
In codewars it shows that these words remain the same.
My question is why these two remain the same in the tests?
sorry my bad!!
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
i found the solution! thanks for your help
This comment is hidden because it contains spoiler information about the solution
Thank you very will try debugging with print
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.
This comment is hidden because it contains spoiler information about the solution
This comment is hidden because it contains spoiler information about the solution