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 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
Get step-by-step solutions from verified subject matter experts
