(Key) Membership (in, not in) : Member : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Member »

 

(Key) Membership (in, not in)


dict2 = {'name': 'earth', 'port': 80}
print 'name' in dict2
print 'phone' in dict2



Leave a Comment / Note


 
Verification is used to prevent unwanted posts (spam). .


PYTHON TUTORIALS

 Navioo Dictionary
» Member