<filename>2_activity/dictionaries.py
lst = ["A", "B", "C"]

item = {"key": 100}

item2 = {"name": "Kara"}
print(item["key"])
print(item2["name"])

#dict can contain mult pairs of info
hero = {"name": "Iron Man", "Nationality": "United States"}

item3 = {"bag": ["laptop", "usb", "food"], "pockets": [5.00, 1.00, gum], "reddit": {"key": [1,2,3,4]}}

print(item3["bag"])
print(item3['reddit']['key'][3])
<filename>2_activity/dictionaries.py
lst = ["A", "B", "C"]

item = {"key": 100}

item2 = {"name": "Kara"}
print(item["key"])
print(item2["name"])

#dict can contain mult pairs of info
hero = {"name": "Iron Man", "Nationality": "United States"}

item3 = {"bag": ["laptop", "usb", "food"], "pockets": [5.00, 1.00, gum], "reddit": {"key": [1,2,3,4]}}

print(item3["bag"])
print(item3['reddit']['key'][3])
#dict can contain mult pairs of info