Like the list
dict_a + dict_b
Even if you write, you can not combine dictionaries, so I thought that I had to write a loop and combine it by myself, but this is one shot.
{**dict_a, **dict_b}
(Because I was told in the comments)
dict_a += dict_b
If you want to do something
dict_a.update(dict_b)
I will meet you. I'm wondering if both + and + = operators are okay.
Recommended Posts