python - Append a dictionary to a dictionary - Stack Overflow
https://stackoverflow.com/questions/8930915/append-a-dictionary-to-a-dictionary
WebYou can do. orig.update(extra) or, if you don't want orig to be modified, make a copy first: dest = dict(orig) # or orig.copy() dest.update(extra) Note that if extra and orig have overlapping keys, the final value will be taken from extra. For example, >>> d1 = {1: 1, 2: 2} >>> d2 = {2: 'ha!', 3: 3}
DA: 58 PA: 6 MOZ Rank: 49