+ 1
in the control flow {python} BMI Calulate {say not true } why...?
weight=float(input("Enter your weight here; ")) height=float(input("Enter your height; ")) calculate = (weight / (height**2)) if calculate < 18.5 : print("Underweight") elif calculate >= 18.5 and calculate < 25 : print("Normal") elif calculate >= 25 and calculate < 30 : print("Overweight") else : print("Obesity")
3 Antworten
+ 3
DO NOT write anything in the input(). Only output the result
0
thank you
0
weight = float(input(''))
height = float(input(''))
bmi = weight / (height ** 2)
if bmi < 18.5:
print('Underweight')
elif bmi >= 18.5 and bmi < 25:
print('Normal')
elif bmi >= 25 and bmi < 30:
print('Overweight')
else:
print('Obesity')