Question: ( 2 0 points ) Create a function FindDifference ( ) that takes in 4 parameters: personToColors: a dictionary that has a string key (
points Create a function FindDifference that takes in 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
person: a string of one person's name.
person: a string of another person's name.
person : a string of another person's name.
This function returns a list of all colors in persons list that DO NOT appear in either persons
or persons list.
So in this scenario:
person : red "blue", "green", "yellow"
person : green "viridian", "cerulean"
person : saffron "lavender", "fuschia", "Yellow"
The function will return this list: "red", "blue"
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
