Lesson 07: Cheat Sheet

  1. a_dict = {“one”: 1}
  2. print (a_dict)
  3. a_dict[“one”] = 2
  4. print (a_dict)
  5. a_dict2 = {“one”: [1,2]}
  6. print (a_dict2[“one”][0]) #if you had to look this up, think about why it is working. I encourage you to print of a_dict[“one”] to help with your understanding.