Your program crashes when
rstuff, taken from the list
None, because it is impossible to check whether there's a
None (line 8).
I inserted following code at line 58:
if rstuff == None: print("halted before error") print("Contents:", contents) print("Index:", index) input()
and indeed found in
'I', 'am', None, 'good', 'at', 'typing."',
None replaced the element
"so" but I'm afraid I have no clue how that happened.
Perhaps this gives you a hint on where to look for the underlying cause.
@Codejira I understand why it errored, I don't understand why something became
none. Also, it is not just "so" that turns into
None, last time it was
I and it seems to change with every run. I already tried debugging (like the code you gave me), and didn't work. Thanks for trying though, I'll give ya an upvote.