Examveda

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

A. Removes all key-value pairs from the dictionary

B. Adds a key-value pair to the dictionary

C. Removes the last key-value pair

D. Deletes the dictionary

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python