OrderedDict in Python-question-5

Last Updated :
Discuss
Comments

When using popitem() on an OrderedDict, what does the parameter last=True indicate?

It removes the first item in the OrderedDict

It removes the last item in the OrderedDict

It removes a random item from the OrderedDict

It removes the oldest item based on insertion time

Share your thoughts in the comments