get method is a way of accessing dictionary items. : Fromkeys : Dictionary PYTHON TUTORIALS


PYTHON TUTORIALS » Dictionary » Fromkeys »

 

get method is a way of accessing dictionary items.


d = dict.fromkeys(['name', 'age'], '(unknown)') 
print d.get('name')



Leave a Comment / Note


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


PYTHON TUTORIALS

 Navioo Dictionary
» Fromkeys