Learn practical skills, build real-world projects, and advance your career

yield_of_apples = w1 * tempature + w2 * rainfall + w3 * humidity

w1, w2, w3 = 0.3, 0.2, 0.5
kanto_temp = 73
kanto_rainfall = 67
kanto_humidity = 43
kanto_yield_apples = w1 * kanto_temp + w2 * kanto_rainfall + w3 * kanto_humidity
kanto_yield_apples
56.8
print("The expected yield of apples in kanto region is {} tons per hectare.".format(kanto_yield_apples))
The expected yield of apples in kanto region is 56.8 tons per hectare.