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:
a=input()
if key[0] < a< key[1]:
print(value)
when I try to execute the program it raise an error
TypeError: 'int' object is not subscriptable.
I don't know how to fix. please help