
Patrick B. answered 05/16/21
Math and computer tutor/teacher
1)
Telephone book: relates name and phone #
barcode # : price
account # : balance
license plate # : vin #
student # : name
social security # : tax amount
2)
a) 35
b) None
c) 2
d) ['b','a']
e) [20,35]
f) 20
g) {"a":35)
3)
a) x = data.get("b")
data["b"]=-x
print(data)
(b) data.update({"c":40})
print(data)
(c) data.pop("b")
print(data)
(d) dict_keys = data.keys()
keyList = []
for key in dict_keys:
#print(key)
keyList.append(key)
keyList.sort()
print(keyList)