0
Alternate solution
Want to know if there is any other way of solving the BMI calculator problem apart from following: w = int(input()) ht = float(input()) BMI = (w/(ht**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')
8 Respostas
+ 2
the only thing that can be used is this option:
18.5 <= BMI < 25
+ 1
Thanks, i didnt know relational operators can be used like this too
+ 1
Ну это уж слишком заморочено 😁👍
+ 1
нет предела совершенству ☺️
0
Hi! I think no, this is good solution.
0
Just try it in your program
0
It works 😏