combine 2 dictionaries python with different keys code example Example 1: merge two dict python 3 z = {**x, **y} Example 2: python added dictionary together dic0.update(dic1)