So - I'm new to Python and just messing around with some basic games to get my head around the language.. For whatever reason this little code returns "Invalid Syntax on Line 8" which is the "While guessedwrong == 1" line... Can anyone tell me why?
from random import randint
UserResponse = int(input("Guess what number between 1 and 100 I'm thinking
of!"))
RandomNumber = randint(1,100)
guessedwrong = 1
While guessedwrong == 1:
If UserResponse > RandomNumber:
print("Nope! Lower!")
UserResponse = int(input("Try again!"))
elif UserResponse < RandomNumber:
print("Njet! Higher!")
UserResponse = int(input("Try again!"))
else
print("Correct! You're awesome!")
GuessedWrong = 0
ifandwhilelowercase. Python is case-sensetive programming language.if,whileshould be in lowercase.guessedWrong = 0guessedwrong*else