# -- dictionaries (mappings from keys to values) --
dict  # type object ("official" name)

{3.14: 42, 'spam': 'eggs', 'John': 3}  # syntax for a dictionary - notice the colons!
grades = {'Bob': 'A', 'Alice': 'B', 'John': 'C+'}  # Bob has grade A, Alice has grade B, etc.
grades['Alice']  # get Alice's grade
print(grades['Alice'])
print(type({1: 2, 3: 4}))
