

0 / 2 embers
0 / 3000 xp
click for more info
Complete a lesson to start your streak
click for more info
Difficulty: 3
click for more info
Not enough gems
Cost: 6 gems
1: Sets
incomplete
2: Sets Quiz
incomplete
3: Vowels
incomplete
4: Set Subtraction
incomplete
This lesson's interactive features are locked, please to keep using them
You can use some of the "normal" mathematical operations on sets. For example, you can subtract one set from another. It removes all the values in the second set from the first set.
set1 = {"apple", "banana", "grape"}
set2 = {"apple", "banana"}
set3 = set1 - set2
print(set3)
# Prints: {'grape'}
Complete the find_missing_ids function. It accepts two lists as input, and returns a new set of all the IDs that are in the first list but are not in the second.
Naturally, the result should not have any duplicate IDs.
set(my_list).- operator.