How to test if a dictionary contains a specific key? [duplicate] How to test if a dictionary contains a specific key? [duplicate] python python

How to test if a dictionary contains a specific key? [duplicate]


'a' in x

and a quick search reveals some nice information about it: http://docs.python.org/3/tutorial/datastructures.html#dictionaries