Computer Science, asked by kevinbmathew56, 1 year ago

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???
kevinbmathew56: its a statement python
kevinbmathew56: do you know anything in python ?
bangtangranger: no
bangtangranger: too young to learn
kevinbmathew56: which grade ?
kevinbmathew56: re u in 11th /
bangtangranger: no
bangtangranger: I am in 8th
kevinbmathew56: no wonders

Answers

Answered by darshan200585
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





kevinbmathew56: Didnt understand
darshan200585: why
kevinbmathew56: Flash meaning ?
ritz12: Yup
Answered by Itsvaishu366
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