choices = {(1): 'one', (2): 'two'}
print(choices.get(n, 'too big!'))
n = 1
print(choices.get(n, 'too big!'))
n = 5
print(choices.get(n, 'too big!'))
python - Simulating 'else' in dictionary switch statements