trying to make a simple program help please :)
LongHairLuke
trolleri.trollface at gmail.com
Fri Oct 14 14:11:06 EDT 2016
Hi, l l am trying to make a simple guess program. This is my script:
def main():
print ("Guess a letter between a and e")
randomNumber = b
userGuess = input("Your guess: ")
if userGuess == randomNumber:
print("You got it")
else:
print ("That's not it")
main()
When l run the program l get error: userGuess is not defined, but l defined userGuess at line 5. I don't get it someone plese help :)
Lukas Alberts
More information about the Python-list
mailing list