Skip to content
  1. Dictionary Deep Dive
  2. KEY:VALUE Pairs. Programming_dictionary = {"bug": "Def_Of_Bug", "Runction": "Def_of_ function" } formatted usually as name_of_dict = { 3 KEY: VALUE, in list KEY: value, #(YES a comma after last valve) 100 days of code 7 cont To access: P.6 Print (programming - dictionary ["Bug"]) To add new entry to dictionary programming dictionary ["Loop"] = "def of loop Create empty dictionary empty_dict = { } Wipe existing dictionary programming- dictionary = {} Edit item in dictionary " programming - dictionary ["Bug"] = "new definition Loop through dictionary for thing in dictionary: print (thing) = only prints Keys So can do 91 nest { LISTS & Dictionaries る Key for thing in dictionary: print (Key)

print key

print (dictionary [key]) # print valde, #tagcheck

tagcheck