"""
A useful dictionary method is get. 
It does the same thing as indexing, 
but if the key is not found in the dictionary it returns another specified value instead ('None', by default).
"""

pairs = {1: "apple",
  "orange": [2, 3, 4], 
  True: False, 
  None: "True",
}

print(pairs.get("orange"))
print(pairs.get(7))
print(pairs.get(12345, "not in dictionary"))


# [2, 3, 4]
# None
# not in dictionary

