In my program, user inputs number n, and then inputs n number of strings, which get stored in a list.
n
I need to code such that if a certain
A lot of answers, not the simple one.
To check if a index 'id' exists at dictionary dict:
dic = {} dic['name'] = "joao" dic['age'] = "39" if 'age' in dic
returns true if 'age' exists.