Vidyalelo
Python · Q12

Python Lists MCQs: Exam Practice for List Concepts

Programming · Python · question 12

Q12

What is the purpose of the clear() method for lists?

A.
Removes all elements from the list
Answer
B.
Adds an element to the list
C.
Removes the last element
D.
Deletes the list

Answer: Option A

Solution

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