+ 1

guess game

i don't know why this wont run properly birds = "finch" guess1 = input("Name a bird I am thinking of: ") if guess1.lower != birds: print("No not thinking of", guess1) guess2 = input("What is your second guess? ") if guess2.lower != birds: print("No not thinking of", guess2) guess3 = input("what is your third guess") if guess3.lower != birds: print("No not thinking of", guess3) print("Game over") else: print("Yes third try") else: print("Yes second try") else: print("Yes first try") can you please help me

10th Oct 2019, 12:25 PM
Cameron Braswell
Cameron Braswell - avatar
2 Réponses
+ 2
you forgot to put empty parenthases() in front of lower function :) python was treating guess.lower as some other variable before
10th Oct 2019, 1:04 PM
Arsenic
Arsenic - avatar
+ 2
thank you
10th Oct 2019, 5:26 PM
Cameron Braswell
Cameron Braswell - avatar