Indexing operation — retrieves the value associated with key
my_dict[key]
jose_grade = my_dict[“Jose”]
my_dict[key] = value
Adds an entry if the entry does not exist, else modifies the existing entry.
my_dict[“Jose”] = “B+”
del my_dict[key]
Deletes the key from a dict.
del my_dict[“Jose”]
key in my_dict
Tests for existence of key in my_dict.
if “Jose” in my_dict: # ….