Answered step by step
Verified Expert Solution
Question
1 Approved Answer
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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started