Skip to content

Combine two lists into a dictionary in Python


Combines two lists into a dictionary, where the elements of the first one serve as the keys and the elements of the second one serve as the values.


#{'age': '26', 'name': 'Anand', 'sex': 'M'}

See also  Remove duplicates from a list in Python

Leave a Reply

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.