Question: 1. Set Construction. (a) Create a function called intersect whose inputs are two sets (lists) A and B, and whose output is a set (list)

 1. Set Construction. (a) Create a function called "intersect" whose inputs

1. Set Construction. (a) Create a function called "intersect" whose inputs are two sets (lists) A and B, and whose output is a set (list) that is the intersection An B of the two sets. (b) Create a function called "union" whose inputs are two sets (lists) A and B, and whose output is a set (list) that is the union AU B of the two sets. Note that all sets will be represented by lists in Python with no repeated elements

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!