Question: PYTHON Write a function; create a dictionary. Upvote for Quick response. Thank you. Write a function that accepts a dictionary whose keys and values are

 PYTHON Write a function; create a dictionary. Upvote for Quick response.

PYTHON Write a function; create a dictionary. Upvote for Quick response. Thank you.

Write a function that accepts a dictionary whose keys and values are strings as its parameter and returns True if no two keys or more map to the same value, otherwise, return false. Create a dictionary in your program and test the function. Sampe output for dictionary: {"Marty': '206-9024', 'Hawking': '123-4567','Smith': '949-0504', 'Newton': '123-4567'} two or more keys map to the same value sample output for dictionary: {'Marty': '206-9024', 'Hawking': '555-1234','Smith': '949-0504', 'Newton': '123-4567"} no two keys map to the same value

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!