Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

( 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"]
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Oracle Databases On The Web Learn To Create Web Pages That Interface With Database Engines

Authors: Robert Papaj, Donald Burleson

11th Edition

1576100995, 978-1576100998

More Books

Students also viewed these Databases questions