Я работаю над этим кодом, и когда я его тестирую, он говорит, что есть синтаксическая ошибка, но она не выделяет мою ошибку в IDLE. Есть идеи?Синтаксис Python-Invalid не вызывает ошибки highligt
import os
import sys
Start=True
while Start==True:
Operation=input("Please select from the following operations\n"
"Add\n"
"Subtract\n"
"Note: Please type the option exactly as on\nscreen or you will recieve an error message.")
if Operation==not(in("Add","Subtract")):
print("That is not a mathmatical operation.\nPlease try again.")
time.sleep(2)
os.sys("cls")
while Operation==str("Add"):
print("You have selected Addition!")
time.sleep(2)
os.sys("cls")
Почему вы делаете нет (())? – JClarke
Yep, '== not (in (...))' неверно. – ForceBru