Hi! I really need help understanding how to do a number variable. I keep trying to python code it (its my best code language) and thats not working. I have inserted a photo, and could someone please explain how I can make a score variable? (Also in case you wondering why I’m not asking AI, I flat out refuse to for moral reasons. Thanks!)
Welcome to the forum @DontYouDareJudg3,
You have created variables score and computerScore, but in getScore, you are treating them like a string.
score = 'score' + 1 should be writtten score = score + 1 (without the quotes) or, even better, score += 1.
Also, when you declare the variables, you should initialize them to 0, so they have a value when you increment or decrement them.
Hope that helps.
