enter all the data for dict3 at the same time : Dictionary Assignment « Dictionary « Python






enter all the data for dict3 at the same time

 

dict3 = {3.2: 'xyz', 1: 'abc', '1': 3.14159}
print dict3

   
  








Related examples in the same category

1.Dictionary assignmentDictionary assignment
2.Change dictionary entryChange dictionary entry
3.Add new entry to a dictionaryAdd new entry to a dictionary