while not ok:
    testvar = eval(input('Select Option\n\n[1] Option 1\n[2] Option 2\n\n    >'))
if testvar in ('1', 'Option 1', 'option 1'):
    print('\nYou selected Option 1')
ok = True
How to replace value of variable within function in python 3