if ops[maths_operator]('test', 'test'):
    print('match found')
maths_operator = '!='
if ops[maths_operator]('test', 'test'):
    print('match found')
else:
    print('match not found')
python if statement with variable mathematical operator