EasyOutput prediction

Set membership test

What does this code print?

seen = {1, 2, 3}
seen.add(2)
seen.add(4)
print(len(seen))

← → arrow keys to navigate

Sign in to save your progress.

Set membership test - Python Data Structures Quiz | Unnested