What goes in the blank?
# read a key, defaulting when absent
value = config.____('port', 8080)
Answer: get
dict.get(key, default) avoids the KeyError that indexing would raise.# read a key, defaulting when absent
value = config.____('port', 8080)
Answer: get
dict.get(key, default) avoids the KeyError that indexing would raise.