Skip to content

Instantly share code, notes, and snippets.

@SaraM92
Created September 24, 2021 06:12
Show Gist options
  • Save SaraM92/e057b737e29a6bcd6807e6d611d76a41 to your computer and use it in GitHub Desktop.
Save SaraM92/e057b737e29a6bcd6807e6d611d76a41 to your computer and use it in GitHub Desktop.
mylist = ['blue', 'orange', 'green']
#Map the list into a dict using the map, zip and dict functions
mapped_dict = dict(zip(itr, map(fn, itr)))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment