Learn practical skills, build real-world projects, and advance your career
Updated 3 years ago
kanto = [73, 67, 43]
johto = [91, 88, 64]
hoenn = [87, 134, 58]
sinnoh = [102, 43, 37]
unova = [69, 96, 70]
w1, w2, w3 = 0.3, 0.2, 0.5
weights = [w1, w2, w3]
for x,y in zip(kanto,weights):
z=x*y
print (z)
21.9
13.4
21.5
def crop_yield(region,weight):
result= 0
for x,y in zip(region,weight):
result += x*y
return result