I am getting an invalid syntax error of elif. Why ?
elif (button1 ["text"] == "O" and button2 ["text"] == "O" and button3 ["text"] == "O" or
button4 ["text"] == "O" and button5 ["text"] == "O" and button6 ["text"] == "O" or
button7 ["text"] == "O" and button8 ["text"] == "O" and button9 ["text"] == "O" or
button3 ["text"] == "O" and button5 ["text"] == "O" and button7 ["text"] == "O" or
button1 ["text"] == "O" and button5 ["text"] == "O" and button9 ["text"] == "O" or
button1 ["text"] == "O" and button4 ["text"] == "O" and button7 ["text"] == "O" or
button2 ["text"] == "O" and button5 ["text"] == "O" and button8 ["text"] == "O" or
button3 ["text"] == "O" and button6 ["text"] == "O" and button9 ["text"] == "O" or
tkinter.messagebox.showinfo("Winner O", "You have just won a game")
ritz12:
What do we mean by @elif here???
Answers
Answered by
5
because your device is hanging and it is too slow so the invalid syntax error eligible will happen so make flash to your device .
hope it helps you
hope it helps you
Answered by
0
Answer:
" and button5 ["text"] == "O" and button9 ["text"] == "O" or
button1 ["text"] == "O" and button4 ["text"] == "O" and button7 ["text"] == "O" or
button2 ["text"] == "O" and button5 ["text"] == "O" and button8 ["text"] == "O" or
button3 ["text"] == "O" and button6 ["text"] == "O" and button9 ["text"] == "O" or
Sorry ♀️ ♂️ ♀️ ♂️ ♀️ ♂️ ♀️ ♂️ ♀️ ♂️ ♀️ ♂️
Similar questions