Ad
  • Custom User Avatar

    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!

  • Custom User Avatar

    Please, don't post solutions in Discourse. If you want to discuss your solution do it in Solutions.

  • Default User Avatar

    This comment is hidden because it contains spoiler information about the solution

  • Custom User Avatar

    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.