Mega Code Archive

 
Categories / Python / Dictionary
 

Dictionary Keys Are Case-Sensitive

d = {}  d["key"] = "value"  d["key"] = "other value"   print d  d["Key"] = "third value"   print d  {'Key': 'third value', 'key': 'other value'}