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