If you want to get the default value when a key doesn’t exist in a dictionary, use dict.get
.
In the code above, since there is no key meeting3
, the default value online
is returned.
If you want to get the default value when a key doesn’t exist in a dictionary, use dict.get
.
In the code above, since there is no key meeting3
, the default value online
is returned.