Chapter 9 Python Dictionaries


https://www.youtube.com/embed/dnzvfimrRMg

Question

  • What does dict equal after running this code?:

      dict = {"Fri": 20, "Thu": 6, "Sat": 1}
      dict["Thu"] = 13
      dict["Sat"] = 2
      dict["Sun"] = 9
    
  • Ans

      {'Fri': 20, 'Thu': 13, 'Sat': 2, 'Sun': 9}
    

Notes mentioning this note


ນີ້ຄືກຣາຟທີ່ລິ້ງໄປຫາທຸກໜ້າໃນ garden ນີ້ 🕸️.