extend

dictionary extend(dict1, dict2, …, dictN)

Returns a new dictionary with the combined entries of all dictionaries.

The value of the last entry will be included when multiple dictionaries contain the same key.

Parameters

  1. dict1 — first dictionary.
  2. dict2 — second dictionary.
  3. dictN — optional N-th dictionary.

Returns