Q. What does `popitem()` do in a dictionary?
β
Correct Answer: (D)
Removes the last inserted key-value pair
Explanation: In Python 3.7+, `popitem()` removes and returns the last inserted item.