1 catalog choices
Element | Price | Version full | Version |
---|---|---|---|
Base | 16300 | 1 | 1 |
Insulation | 7050 | 1 | 1 |
Wood stove | 2400 | 1 | 1 |
Queen Bed | 1500 | 1 | 0 |
Kitchen | 5130 | 1 | 0 |
Table Shelves | 105 | 1 | 0 |
Cooktop shelves | 120 | 1 | 0 |
Cutlery drawer | 300 | 1 | 0 |
Glass by cooktop | 375 | 1 | 0 |
Gas cooktop | 360 | 1 | 0 |
Bathroom base | 900 | 1 | 1 |
sink | 435 | 1 | 1 |
toothbrush shelf | 75 | 1 | 0 |
sleves above door | 225 | 1 | 0 |
hangers | 90 | 1 | 0 |
gas water heater | 675 | 1 | 1 |
incinerating toilet | 4650 | 1 | 1 |
insulated shower | 1425 | 1 | 1 |
wardrobe | 900 | 1 | 0 |
trailer | 7950 | 1 | 1 |
from functools import reduce
= len(x[0]) - 2
versions = [0] * versions
totals
for row in x:
for index, total in enumerate(totals):
= totals[index] + (row[1] * row[index + 2])
totals[index]
print(totals)