Oct-22-2017, 09:23 PM
I can't believe I'm having so much trouble creating a boolean variable! I just want to tell my program to set a boolean to true if two strings match each other:
word = "dink" bool("guessStringMatches")#error: invalid syntax guessStringMatches = false#NameError: name 'false' is not defined guess = str(input("What's the word you dink head?")) if guess == word: print("you guessed the word correctly.") guessStringMatches = true