Created
September 24, 2021 06:12
-
-
Save SaraM92/e057b737e29a6bcd6807e6d611d76a41 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
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