OrderedDict in Python-question-7

Last Updated :
Discuss
Comments

How can you create an OrderedDict from an existing dictionary in Python?

OrderedDict(dict)

dict.OrderedDict()

dict.toOrdered()

OrderedDict.from_dict(dict)

Share your thoughts in the comments