Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Implement a couple of python functions specified in the given skeleton script. def test_list_2_dict(): # provide your test cases pass def list_2_dict(my_list): This function taks
Implement a couple of python functions specified in the given skeleton script.
def test_list_2_dict():
# provide your test cases
pass
def list_2_dict(my_list): This function taks as input a list of 2-tuples and and convert the list to a dictionary. The formart of the list is: [(k1, v1), (k2, v2), (k3, v3)] and the output is {k1:v1, K2:v2, k3:v3} For example, a test case would be: [(11, 'David'), (101, 'John'), (32, 'Lisa'), (55, 'Chris')] return my_dictStep 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