Common Sequence Operations
Common Sequence Operations
Operation Result
update([other])
Update the dictionary with the key/value pairs from other, overwriting existing keys.
Return None.
update() accepts either another dictionary object or an iterable of key/value pairs (as
tuples or other iterables of length two). If keyword arguments are specified, the
dictionary is then updated with those key/value pairs: d.update(red=1, blue=2).
values()
Return a new view of the dictionary’s values. See the documentation of view objects.