+ 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")

28th May 2022, 4:33 PM
Anton HANY
3 odpowiedzi
+ 3
DO NOT write anything in the input(). Only output the result
28th May 2022, 4:37 PM
Lisa
Lisa - avatar
0
thank you
28th May 2022, 5:21 PM
Anton HANY
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')
12th Jun 2022, 3:34 AM
Nícolas Nascimento
Nícolas Nascimento - avatar