Examveda

If a is a dictionary with some key-value pairs, what does a.popitem() do?

A. Removes an arbitrary element

B. Removes all the key-value pairs

C. Removes the key-value pair for the key given as an argument

D. Invalid method for dictionary

Answer: Option A


This Question Belongs to Python Program >> Dictionary In Python

Join The Discussion

Related Questions on Dictionary in Python