Answers for "merge multiple dicts with same key quick"

0

merge multile dict

dict1 = {"a":1, "b":2}
dict2 = {"x":3, "y":4}
merged = {**dict1, **dict2}
print(merged) # {'a': 1, 'b': 2, 'x': 3, 'y': 4}
Posted by: Guest on August-20-2020

Code answers related to "merge multiple dicts with same key quick"

Python Answers by Framework

Browse Popular Code Answers by Language