Sets
Warm-upHumanLet and . Write .
Let and . Write .
With the same and , write .
In the universe , write the complement of .
Which statements are true? (Choose all that apply.)
What is the cardinality ?
A café offers 3 drinks and 4 snacks. A combo is an ordered pair (drink, snack). If is the set of drinks and the set of snacks, how many elements does have?
In a class, 14 students play football, 9 play chess, and 5 play both. How many play at least one of the two games?
Write a Python function is_subset(a, b) that returns True exactly when every element of the set a is an element of the set b. Don't use Python's built-in <= or issubset — loop over the elements instead.