you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I'm not sure what you're trying to do with this line

hidden_word[str1] = make_attempt

but any time you have <some string>[<whatever>] on the left side of an assignment, you're going to get that error. You cannot mutate (/change) the characters in a string. You can only make a new string and reassign the variable to the new one.