I am very new to python and my else statement keeps on getting a syntax error.
I'll comment the else where the syntax is.
print("""
(A)ddition
(S)subtraction
(D)ivision
(M)multiplication
""")
operation = input("select an operation from above (initials) = ")
if(operation == "A","S","D","M"):
#this is where i am getting syntax
else:
print("select valid operation.")
number1 = int(input("first number = "))
number2 = int(input("second number = "))
if(operation == "A","M","D","S"):
if operation == "A":
print("this is the result = ", number1+number2)
elif operation == "S":
print("this is the final result", number1 - number2)
elif operation == "M":
print("this is the final result", number1 * number2)
elif operation == "D":
print("this is the final result", number1/number2, ".And this is the remainder = ",number1&number2)