Answered step by step
Verified Expert Solution
Question
1 Approved Answer
( 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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started