Primary
dict.update() ⚬|Documentation|1st|20251021181718-00-⌔
Built-in Types — Python 3 documentation#dict.update
update(﹡﹡kwargs)
update(mapping,/, ﹡﹡kwargs)
update(iterable,/, ﹡﹡kwargs)Update the dictionary with the key/value pairs from mapping or iterable and kwargs, overwriting existing keys. Return
None.
update()accepts either another object with akeys()method (in which case__getitem__()is called with every key returned from the method) 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).Printed 2026-06-28.
(echo:: @ ᯤ)
Link to original
Secondary
• • •