Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created August 10, 2020 02:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IndhumathyChelliah/828762fa72dc981344e4a90c4d2ace24 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/828762fa72dc981344e4a90c4d2ace24 to your computer and use it in GitHub Desktop.
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