I don't really know why this is happening, can someone help explaining why the syntax error happens
Menu_select = input("""
[------------------]
[ Menu.model ]
[ 1) Start: ]
[ 2) Options: ]
[ 3) Placeholder1: ]
[ 4) Placeholder2: ]
[ 5) Exit: ]
[------------------]
"""))
if Menu_select == '1':
startyn = input('Do you want to start? ')
while startyn != 'Yes' or startyn != 'yes' or startyn != 'y' or startyn != 'Y':
if startyn == 'Yes' or startyn == 'yes' or startyn == 'y' or startyn == 'Y':
print('Okay lets start!')
elif startyn == 'No' or startyn == 'no' or startyn == 'N' or startyn == 'n':
print('Okay back to the menu!')
elif Menu_select == '2':
optionsyn = input('Do you want to go into the options? ')
答案 0 :(得分:2)
The syntax error is on the double right parenthesis. There's no match for the second one.