0

Why is that it doesn't work

Calculating bmi #your code goes here height = float(input ()) weight = 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')

26th Aug 2021, 9:14 AM
Ismael Wesa
3 Answers
26th Aug 2021, 9:25 AM
Simba
Simba - avatar
+ 2
Ismael Wesa You have reversed the order of your inputs to that required by the challenge. weight = etc height = etc So when you RUN the code, the first number is assigned to weight and the 2nd number is assigned to height
26th Aug 2021, 10:38 AM
Rik Wittkopp
Rik Wittkopp - avatar
+ 1
Simba 😯😆.
26th Aug 2021, 4:13 PM
Harshit Jawla
Harshit Jawla - avatar