Ad
  • Custom User Avatar

    Line 8 is erroring because word[x+1] is out of bounds

  • Custom User Avatar

    Your function should return, not print the result.

  • Custom User Avatar

    Mark your post as having spoiler content next time. Without markdown formatting Python code is specially hard to read when indentation is removed.

    The error is pretty self-explanatory, inside your loop, you're trying to access an index that doesn't exist. Adjust your code.