secret_word = "Lion"
guess = ""
guess = 0
guess_limit= 3
out_of_guesses = False
while guess != secret_word and not (out_of_guesses):
if guess_count < guess_limit
guess = input("Enter Guess: ")
guessCount +=1
else:
out_of_guesses= True
if out_of_guesses:
print("Out of guesses, YOU LOSE!")
else:
print("You win")
答案 0 :(得分:0)
您在if guess_count < guess_limit
的末尾缺少一个冒号。