switch = {(0, 21): 'never have a pension', (21, 50): 'might have a pension',
    (50, 65): 'definitely have a pension', (65, 200):
    'already collecting pension'}
for key, value in switch:
    if key[0] < case_var < key[1]:
        pass
Switch in Python