Q. Which Python method removes all items from a list?

A
remove()
B
pop()
C
clear()
D
delete()
Solution:

The clear() method removes all items from a list, leaving it empty.

Entri PDF Icon

Get Question Bank

Strengthen Your Practice with our comprehensive question bank.

Entri Contact Image

Get Expert Advice for Free: Register for Your Free Consultation Now!