Vidyalelo
Python · Q11

MCQs for Python Dictionaries: Exam

Programming · Python · question 11

Q11

In Python, how can you remove all key-value pairs from a dictionary?

A.
clear()
Answer
B.
remove_all()
C.
delete_all()
D.
discard_all()

Answer: Option A

Solution

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