Vidyalelo
Python · Q17

MCQs on Python Tuples: Exam

Programming · Python · question 17

Q17

In Python, how can you remove all occurrences of a specific element from a list or tuple?

A.
Use a loop and remove() method
Answer
B.
delete_all()
C.
clear()
D.
discard_all()

Answer: Option A

Solution

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