+ 1
Could you correct this?
Wether I put indentation or not before elif line, the result always indicates there is error somewhere and I can’t find any. Please help me. h=float(input()) w=float(input()) bmi=w/(h**2) if bmi<18.5 : print('Underweight') elif bmi<25 : print('Normal') elif bmi<30 : print('Overweight') else: print('Obesity')
2 Respuestas
+ 4
Appears to run just fine.
https://code.sololearn.com/chlkSLypV6zw/?ref=app
+ 1
t029박현민
w=float(input())
h=float(input())
Your inputs are in reversed order causing the incorrect numbers to be processed during the testing