Question: Instructions In this lab, you will be creating 3 different functions which will operate on and return sets. Write a function get_sets_overlap (), which takes

 Instructions In this lab, you will be creating 3 different functions

Instructions In this lab, you will be creating 3 different functions which will operate on and return sets. Write a function get_sets_overlap (), which takes as input two sets and returns their intersection. Write a function get_sets_union (), which takes as input two sets and returns their union. Write a function get_sets_diff( ), which takes as input two sets and returns their difference. To test your functions, in your main program, create the following three sets: - The first set represents students who completed the quiz 1: - Vader, Leya, Hann, Luc, Choobaka - The second set represents students who completed the quiz 2 : - Lars, Beru, Willard, Hann, Wilhuf - The third set represents the class roster, which contains the names of all students enrolled in the class: - Vader, Leya, Owen, Hann, Luc, Choobaka, Lars, Beru, Greedo, Willard, Hann, Wilhuf, Takeel 1. Use the get_sets_overlap () function to find the students who completed both quizzes. 2. Use the get_sets_union () function to find the students who took at least one quiz (save this set, since you'll need to use it in the next step). 3. Use the get_sets_diff() function to find the students who misses both quizzes (remember that the roster tells you all students who are enrolled in the class...)

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!