Skip to main content

Practice · 2 of 3

Seen Before?

CHALLENGE
Difficulty: beginner+25 XP

ids = [101, 202, 101, 303] is given. seen = set() starts empty. For practice, print True if 101 appears more than once in ids, False otherwise (a set makes this one line).

Back to lesson: Practice: Tuples & Sets