Computer Science

The …………… method removes the last entered element from the dictionary.

  1. pop()
  2. remove()
  3. popitem()
  4. del

Python Dictionaries

2 Likes

Answer

popitem()

Reason — The popitem() method removes and returns the last entered key-value pair from the dictionary.

Answered By

1 Like


Related Questions