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