Mega Code Archive
Categories
/
Python Tutorial
/
Dictionary
Mixing the use of numbers and strings as keys
dict3 = {} dict3[1] = 'abc' dict3['1'] = 3.14159 dict3[3.2] = 'xyz' print dict3