join two dict python code example Example 1: join two dictionaries python z = {**x, **y} Example 2: merge two dict python 3 z = {**x, **y}