Код: Выделить всё
# My dictionary
potato_shop = {
"PCT16": [
"Standard Potatoes",
{"SP12": ["Plain Potato", 1.20], "SP67": ["Cream Potato", 1.75]},
],
"PCT44": [
"Premium Potatoes",
{
"PP18": ["Chocolate Cheese Potato", 3.20],
"PP91": ["Whipped Cream Strawberry Potato", 5.00],
},
],
}
Подробнее здесь: https://stackoverflow.com/questions/788 ... ctionaries