Sololearn: Learn to Code
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")
3rd Apr 2021, 6:24 AM
Ravi venkateswarlu
Ravi venkateswarlu - avatar
0
Buddy, post the problem and a link to your code.
19th Mar 2021, 11:35 AM
Slick
Slick - avatar
0
Okay, we can definately help with the bmi calculator! Please post your attempt
19th Mar 2021, 11:49 AM
Slick
Slick - avatar
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 ^^
19th Mar 2021, 12:10 PM
visph
visph - avatar
0
Yeah, I'd reatart that chapter of the lesson and really focus. Make sure you fully understand before you move on.
19th Mar 2021, 12:29 PM
Slick
Slick - avatar
0
that's not a valid python code... you must review the lesson and try it (better) again...
19th Mar 2021, 12:29 PM
visph
visph - avatar
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")
28th Mar 2021, 6:03 PM
PRASHANT VERMA
PRASHANT VERMA - avatar
0
Bmi = input(weight/height)**2 x = num num1 < 18.5 num2 >= 18.5 nums.add <25, <30 num >= 30 printf (x)
14th Jul 2021, 4:46 AM
Aayushi Singh
Aayushi Singh - avatar
- 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 " ???
3rd Apr 2021, 6:00 AM
Ravi venkateswarlu
Ravi venkateswarlu - avatar