Answered step by step
Verified Expert Solution
Link Copied!

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Database Programming

Authors: Chris Fehily

1st Edition

1937842312, 978-1937842314

More Books

Students also viewed these Databases questions