TypeError: can only concatenate tuple (not “int”) in Python

Your checkAnswer() function returns a tuple: Here return right, answer returns a tuple of two values. Note that it’s the comma that makes that expression a tuple; parenthesis are optional in most contexts. You assign this return value to right: making right a tuple here. Then when you try to add 1 to it again, the error occurs. You don’t change answer within the function, so there … Read more