Vidyalelo
Python · Q8

Python Sets MCQs: Exam

Programming · Python · question 8

Q8

What method is used to remove an element from a set without raising an error if the element is not present?

A.
discard()
Answer
B.
delete()
C.
remove()
D.
pop()

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board