Q. If a is a dictionary with some key-value pairs, what does a.popitem() do? (Solved)
1. removes an arbitrary element
2. removes all the key-value pairs
3. removes the key-value pair for the key given as an argument
4. invalid method for dictionary
- a. removes an arbitrary element