Artificial Intelligence (AI) & Machine Learning Course for ManagersEnroll Now
Now we know the operations and variables in Python. Let's write a program to calculate the BMI.
BMI = weight / (height * height)
weight is in kg (kilogram) and
height is in mt (meters)
bmiand assign the calculated integer value of BMI to this variable
print(bmi). You should get
Taking you to the next exercise in seconds...