OrderedDict in Python-question-9

Last Updated :
Discuss
Comments

What happens when you assign a new value to an existing key in an OrderedDict?

The order of the key is preserved, and its value is updated

The key is moved to the end

The key is removed and re-inserted at the end

The order of keys is reset

Share your thoughts in the comments