Variable problems

Please first read the pinned thread in order to understand how to format code properly for the forum; screenshots are inherently harder to read and can’t be copied and pasted from for discussion.

Then read here:

as this is an extremely common issue. The short version is that simply writing the name guesses_left outside the function does not mean that the name guesses_left will be a global variable everywhere within the code.