Vidyalelo
Python · Q11

MCQs on Python Tuples: Exam

Programming · Python · question 11

Q11

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

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

Answer: Option A

Solution

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