Question: Please write in PYTHON Example 2 Write the function listsToDict that will take two list and convert them to a dictionary and return the dictionary.

 Please write in PYTHON Example 2 Write the function listsToDict that

Please write in PYTHON

Example 2 Write the function listsToDict that will take two list and convert them to a dictionary and return the dictionary. The values of the first list will become the keys whereas the values of second list will hold the values EXAMPLE PROGRAM RUN li2 = ['first','second','third'] INPUT: listsToDict(li1, li2) OUTPUT: I'1': first', '2': 'second', '3': 'third'] INPUT: lists ToDict(li2, li1) OUTPUT: f'first': 1, 'second': 2, 'third': 3) 10 polnts

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!