OnlinePython

Reading Set Data Exercise

Question 1 of 6

What is the most efficient way to check if multiple items exist in a set?

users = {"alice", "bob", "carol", "david"}
to_check = ["alice", "eve", "bob"]

# Which approach is best for checking membership?