Question: Write a function definition that accepts two lists of equal lengths and pairs them in a key:value dictionary in PYTHON 3.5 EXAMPLE: keys = [red,

Write a function definition that accepts two lists of equal lengths and pairs them in a key:value dictionary in PYTHON 3.5

EXAMPLE:

keys = ["red", "blue", "green"]

values = [200, 300, 400]

Returns:

{"red": 200, "blue": 300, "green":400}

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!