Dictionaries & Tuples — 12 Questions
d = ["name": "Alice"]
d = {"name": "Alice"}
d = ("name": "Alice")
d = <"name": "Alice">
None
0
KeyError
my_dict.get("key", "default")
"key"
my_dict
"default"
my_dict.items()
d = {"a": 1, "b": 2} d["a"] = 10 d["c"] = 3 print(len(d))
2
3
4
Error
t = (5)
t = (5,)
t = [5]
t = {5}
t = (1, 2, 3, 2, 2) print(t.count(2))
1
5
pop()