You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
5 lines
101 B
Python
5 lines
101 B
Python
5 years ago
|
d1 = {'a': 100, 'b': 200}
|
||
|
d2 = {'x': 300, 'y': 200}
|
||
|
d = d1.copy()
|
||
|
d.update(d2)
|
||
|
print(d)
|