Examveda

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

A. Use a loop and remove() method

B. delete_all()

C. clear()

D. discard_all()

Answer: Option A


This Question Belongs to Python Program >> Lists In Python

Join The Discussion

Related Questions on Lists in Python