# take operand
print('Select operator')
operator = str(input('Choose between + or * or - or /'))
if operator in ("+", "*", "-", "/"):
pass
else:
print ('error')
operator = str(input('Choose between + or * or - or /'))
I am trying to make it check if the entered symbol is, in fact, one of these "+", "*", "-" or "/"
If they enter a letter, for example, I want it to return that they should only one of the symbols. It works with a lot of elifs but it also prints four times that the symbol is incorrect. I want to fix that.