Problem with Python 3.1(syntax error). Im a beginner please help!
- by Jonathan
Hi there, im new to pragraming :)
I got a problem with sytax error while making a guessing game. the problem is in (if Gender = boy or Boy), the equal(=) letter is a syntax error. Please help!
Answer = 23
Guess = ()
Gender = input("Are you a boy, a girl or an alien? ")
if Gender = boy or Boy:
print("Nice!", Gender)
if Gender = girl or Girl:
print("Prepare do die!", Gender)
if Gender = alien or Alien:
print("AWESOME my", Gender, "Friend!")
While Guess != Answer:
if Guess < Answer:
print("Too low! try again")
else:
print("too high!"
print("Congratulations you guessed correct!", Gender, "Have fun!"
Thank