+ 2

Hello, i wrote the code down here but showing syntax error. I can't figure that out.please someone should explain it to me

secrete_word="solo learn" guess="" guess_count=0 guess_limit=3 out_of_guess=False while guess!=secrete_word and not(out_of_guess): if guess_count < guess_limit: guess=input("enter a guess:") guess_count+=1 else: out_of_guess=True if out_of_guess: print("our of guess, YOU LOOSE") else: print("YOU WIN")

13th Apr 2020, 6:40 PM
mubarak
mubarak - avatar
2 Réponses
+ 1
It pointing Syntaxerror=invalid Sytax at line 10(else:) I don't really know how to go about it
13th Apr 2020, 6:45 PM
mubarak
mubarak - avatar
+ 1
Thanks sir. Let me give it a try
13th Apr 2020, 6:55 PM
mubarak
mubarak - avatar