Answer the question
In order to leave comments, you need to log in
How to get values from OrderedDict?
How to get values from OrderedDict?
[OrderedDict([('name', 'Запасные части для специальной техники'), ('code', 'HD')])]
Answer the question
In order to leave comments, you need to log in
Just like from a regular dict. And why you put it inside the list, I don't know.
In [1]: from collections import OrderedDict
In [2]: order_dict = OrderedDict([('name', 'Запасные части для специальной техни
...: ки'), ('code', 'HD')])
In [4]: order_dict["name"]
Out[4]: 'Запасные части для специальной техники'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question