This error keeps coming up for me on the variable "guess", as you can see Python highlighted in red. I'm supposed to be programming a game where a user inputs a number, trying to guess the correct one from 1 to 20. Whenever I run module it says "invalid syntax". I'm a beginner and I appreciate your help. [![https://i.stack.imgur.com/cEoCf.png][1]][1] [![https://i.stack.imgur.com/9AG8U.png[1]][1]

put on hold as off-topic by Milliways, Ingo, Ghanima Feb 13 at 17:10

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "This question does not appear to be specific to the Raspberry Pi within the scope defined in the help center." – Ingo, Ghanima
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 4
    else doesn't take a condition - also, next time post the code in the question - images of code are next to useless – Jaromanda X Feb 1 at 2:37
  • 2
    Welcome to Raspberry Pi :-) But this isn't a question belonging to Raspberry Pi. Please ask at stackoverflow.com. And please take the short Tour and visit the Help Center to get an idea how things work here. – Ingo Feb 1 at 9:55

Browse other questions tagged or ask your own question.