`dict.pop`
a = dict(a=1, b=2)
a.pop('c', None) # None
print a # {'a': 1, 'b': 2}
a.pop('a', None) # 1
print a # {'b': 2}
> If `key` is in the dictionary, remove it and return its value, else return `default`. If `default` is not given and key is not in the dictionary, a KeyError is raised.
`pop(key[, default])` `default` `pop` 2 `default` `KeyError` `None`