-
-
Save IndhumathyChelliah/828762fa72dc981344e4a90c4d2ace24 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
l1=[{1:'a',2:'b'},{3:'c',4:'d'}] | |
d1={} | |
for i in l1: | |
d1.update(i) | |
print (d1) | |
#Output:{1: 'a', 2: 'b', 3: 'c', 4: 'd'} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment