dict1 = {'name': 'earth', 'port': 80} print 'server' in dict1 print 'name' in dict1 print dict1['name']