Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created August 10, 2020 03:21
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/fd41136a52267c80af6a21301cf56d42 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/fd41136a52267c80af6a21301cf56d42 to your computer and use it in GitHub Desktop.
l1=['a','b','c','d']
d1=dict(enumerate(l1))
print (d1)#Output:{0: 'a', 1: 'b', 2: 'c', 3: 'd'}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment