def test2 spec price return map lambda price description price price p

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
def test2(spec, price):
return map(lambda x:
(
price[x[0]]['description'],
x[1],
price[x[0]]['price'],
price[x[0]]['price'] * x[1]
),
spec)