I want to do simple lists multiplication. It works good for c but fails for d with following error: TypeError: zip argument #1 must support iteration
Any suggestion to correct it would be appreciative.
x=[]
area1 = (area1)/100
area2 = (area2)/100
area3 = (area3)/100
x.append(area1)
x.append(area2)
x.append(area3)
# resultant x is [0.96, 0.03, 0.0]
a = [13.87, 14.78, 10.3]
b = [0.44, 0.39, 0.38]
c = sum([x* a for x, a in zip(x, a)])
d = sum([x* b for x, b in zip(x, b)])