Question: ( 2 0 points ) Create a function FindDifference ( ) that takes in 4 parameters: personToColors: a dictionary that has a string key (

(20 points) Create a function FindDifference() that takes in 4 parameters:
personToColors: a dictionary that has a string key (name of person), and a list of
strings as the value (names of person's favorite colors).
person1: a string of one person's name.
person2: a string of another person's name.
person 3: a string of another person's name.
This function returns a list of all colors in person1's list that DO NOT appear in either person2's
or person3's list.
So in this scenario:
person1 : ["red", "blue", "green", "yellow"]
person2 : ["green", "viridian", "cerulean"]
person3 : ["saffron", "lavender", "fuschia", "Yellow"]
The function will return this list: [ "red", "blue"]
 (20 points) Create a function FindDifference() that takes in 4 parameters:

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!