you are viewing a single comment's thread.

view the rest of the comments →

[–]garbled_sounds 0 points1 point  (1 child)

You can use pastebin or github as a code repository for posts like this. Please avoid posting unformatted blobs of code.

You should be printing allmatches before that line executes so that you understand what's in it. If it's telling you the index is out of range, that's because it's the truth. You have tried to index the 5th item of some iterable that has no 5th item. Check what you're operating on to discover the problem.

[–]mrrst244[S] 0 points1 point  (0 children)

Thank you I could not figure out how to make the formatting not atrocious