Question: 3. Create a function called GetValue() with the following requirements: a. Two parameters i. the first parameter is the name of a dictionary with the

 3. Create a function called GetValue() with the following requirements: a.

3. Create a function called GetValue() with the following requirements: a. Two parameters i. the first parameter is the name of a dictionary with the same structure as the one created in question 2 above (i.e. the key is an integer and the value is a string) ii. the second parameter is the key of the value you want to retrieve b. The return value is the value retrieved from the dictionary. If the operation failed, then return the string "!!!None!!!". C. Save this function in a file called GetValue.py d. Create a program to test this function, making sure you import the function module. Name the program TestGetValue.py You may use the output of question 2 as input in this

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 Programming Questions!