Question: Function Name: zip_d Parameters: two equal-sized lists Returns: a dictionary Description: Write a function, zip_d, that takes a two equal-sized lists as parameters, and zips

Function Name: zip_d Parameters: two equal-sized lists Returns: a dictionary

Description: Write a function, zip_d, that takes a two equal-sized lists as parameters, and zips each list into a dictionary.

Sample Inputs/Outputs:

Example Call: zip_d([1,2,3], ['a','b','c']) Expected Return: {1: 'a', 2: 'b', 3: 'c'} Example Call: zip_d([a,b,c],[9.8,7.6,5.4]) Expected Return: {a:9.8, b:7.6, c:5.4}

please answer in python

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!