Mega Code Archive
Categories
/
Python Tutorial
/
Dictionary
Get method is a way of accessing dictionary items
d = dict.fromkeys(['name', 'age'], '(unknown)') print d.get('name')