Question: Create a function named get _ name that, given a dictionary, returns the value associated with the key Name. Make sure you unit test the

Create a function named get_name that, given a dictionary, returns the value associated with the key "Name". Make sure you unit test the function.
For the type parameter, use dict for now (representing any generic dictionary). This function should return a string value.
Console:
Feedback: Syntax Error
Syntax Error
Bad syntax on line 5
The traceback was:
Line 5 of file answer. py
assert_equal (
get.name: {'Name', 'John doe'})
Suggestion: Check line 5, the line before it, and the line after it.
from cisc108 import assert_equal
def get_name(dictionary: dict) str:
return dictionary.get('Name')
assert_equal(
get.name:{'Name', 'John doe'})
I
 Create a function named get_name that, given a dictionary, returns the

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!