dic1={1:10, 2:20}  
dic2={3:30, 4:40}  
dic3={}  
dic4 = {7:70}  
for d in (dic1, dic2, dic4): dic3.update(d)  
print(dic4)

Output :

{7: 70}

Add a Comment

Add a Comment