New course! Every coder should learn Generative AI!
Try a free lesson- 2
(Solution);
#your code goes here
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")
elif BMI > 30 :
print("Obesity")
0
Buddy, post the problem and a link to your code.
0
Okay, we can definately help with the bmi calculator! Please post your attempt
0
Mik S. you've already get helped when providing your code attempt (or when asking questions not related to a code task/homework)...
however, that's your second attempt today to get code without sharing your own code attempt: sololearn is not a ready to use code provider, but a platform to help each others to solo-LEARN... and you will learn nothing if you only copy-paste ready made solution without trying by your own ^^
0
Yeah, I'd reatart that chapter of the lesson and really focus. Make sure you fully understand before you move on.
0
that's not a valid python code...
you must review the lesson and try it (better) again...
0
weight = float(input())
height = float(input())
c = weight/(height**2)
if c < 18.5:
print("Underweight")
elif c < 25 and c >= 18.5:
print("Normal")
elif c < 30 and c >= 25:
print("Overweight")
elif c == 30 or c>30:
print("Obesity")
0
Bmi = input(weight/height)**2
x = num
num1 < 18.5
num2 >= 18.5
nums.add <25, <30
num >= 30
printf (x)
- 2
weight = float(input())
height = float(input())
x = weight/height**2
if x < 18.5:
print("Underweight")
elif x >=18.5 and x < 25:
print("Normal")
elif x >= 25 and x < 30:
print("Overweight")
elif x == 30 or 30 < x:
print("Obesity")
What's wrong in this it's saying " expected indented block " ???