0

My code is not compile accuredly

print('Welcome to the guessing word game!') guess="" sc_wrd="Football" guess_cnt=0 guess_lmt=3 out_of_guess=False while guess!=sc_wrd and not(out_of_guess): if guess_cnt < guess_lmt: guess=input('Inter your guess: ') guess_cnt+=1 else: out_of_guess=True if out_of_guess: print("Guess time is out!") else: print("You Win!")

20th Oct 2021, 1:57 PM
ABDULLAAH
ABDULLAAH - avatar
1 ответ
+ 2
Remove the guess variable out of the while loop
20th Oct 2021, 2:12 PM
MATOVU CALEB
MATOVU CALEB - avatar