Merge two dictionaries using dict. In Python, the Dictionary class provides a function update() i.e. It accepts an another dictionary or an Iterable object (collection of key value pairs) as argument. Then merges the contents of this passed dictionary or Iterable in the current dictionary.