ID EN
Collections

update

Python 3.11

Elements are counted from an iterable or added-in from another mapping (or counter). Like dict.update() but adds counts instead of replacing them. Also, the iterable is expected to be a sequence of elements, not a sequence of (key, value) pairs.

Syntax

PYTHON
update([iterable-or-mapping])

See Also

dict.update()