thisdict = { "brand": "Ford", "model": "Mustang", "year": 1964 } thisdict["color"] = "red" print(thisdict)
mydict = {'score1': 41,'score2': 23} mydict['score3'] = 45 # using dict[key] = value print(mydict)
a_dictonary = {} a_dictonary.update({"Key": "Value"})