Created
December 10, 2021 07:35
-
-
Save pralabhsaxena05/a2d1b2e915d8073aeb9af233031eaa41 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
def list_to_dictionary(keys, values): | |
return dict(zip(keys, values)) | |
list1 = ["Name", "Age", "City"] | |
list2 = ['Roy', 26, "New York"] | |
print(list_to_dictionary(list1, list2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment