LogiQuest
Back to Sets
6

What is the output of the following code?

s = {3, 1, 2}
s.add(2)
s.discard(10)
print(sorted(s))
Medium

Discussion (0)

  • No discussion yet. Ask a doubt or share a shortcut.

Log in to join the discussion.