Merging dictionaries Old way: {**dict1, **dict2} Since 3.9, try this more elegant way: dict1 | dict2 For in-place updating: dict1 |= dict2 #dicts