Question: PYTHON DICTIONARIES & LISTS # Complete the function to return a dictionary using # list1 as the keys and list2 as the values def createDict(list1,

PYTHON DICTIONARIES & LISTS # Complete the function to return a dictionary using # list1 as the keys and list2 as the values def createDict(list1, list2): # Student code goes here # expected output: {'tomato': 'red', 'banana': 'yellow', 'lime': 'green'} print(createDict(['tomato', 'banana', 'lime'], ['red','yellow','green'])) # expected output: {'Brazil': 'Brasilia', 'Ireland': 'Dublin', 'Indonesia': 'Jakarta'} print(createDict(['Brazil', 'Ireland', 'Indonesia'], ['Brasilia','Dublin','Jakarta']))

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!