Learn practical skills, build real-world projects, and advance your career
# dot product of 2 vectors
# input the tabluar data for 5 regions: temperature, rainfall and humidity
kanto = [73, 67, 43]
johto = [91, 88, 64]
hoenn = [87, 134, 58]
sinnoh = [102, 43, 37]
unova = [69, 96, 70]
# linear_output, yield_of_apples = w1 * temperature + w2 * rainfall + w3 * humidity
w1, w2, w3 = 0.3, 0.2, 0.5
weights = [w1, w2, w3]
# zip function
for item in zip(kanto, weights):
    print(item)
(73, 0.3) (67, 0.2) (43, 0.5)