6
What is the output of the following code?
s = {3, 1, 2}
s.add(2)
s.discard(10)
print(sorted(s))Medium
What is the output of the following code?
s = {3, 1, 2}
s.add(2)
s.discard(10)
print(sorted(s))Log in to join the discussion.