V
Size: a a a
V
N
ПЯ
V
V
ПЯ
A
И
ПЯ
БГ
sum(store.get(name, {}).get('price', 0) for name in goods)
V
БГ
sum(store.get(name, {}).get('price', 0) for name in goods)
БГ
sum(store.get(name, {}).get('price', 0) for name in goods)
БГ
БГ
A
БГ
total=0
for _id, stored in store.items():
local = 0
for item in stored:
local += item['quantity']*item['price']
total += local
print(local)
A
A