import string if __name__ == "__main__": L = {'a':1, 'b':2} print 'a' in L if L['a'] == 1: None