28 end of module project | Sololearn: Learn to code for FREE!

+3

28 end of module project

Python for beginners

3/19/2021 11:28:19 AM

Mik S.

12 Answers

New Answer

-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")

+3

Tracking your BMI is a useful way of checking if you’re maintaining a healthy weight. It’s calculated using a person's weight and height, using this formula: weight / height² The resulting number indicates one of the following categories: Underweight = less than 18.5 Normal = more or equal to 18.5 and less than 25 Overweight = more or equal to 25 and less than 30 Obesity = 30 or more Let’s make finding out your BMI quicker and easier, by creating a program that takes a person's weight and height as input and outputs the corresponding BMI category. Sample Input 85 1.9 Sample Output Normal

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

Bmi = input(weight/height)**2 x = num num1 < 18.5 num2 >= 18.5 nums.add <25, <30 num >= 30 printf (x) #i don't know how is it work. Or What's the formula?

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

#BMI Calculator: weight = float(input()) height = float(input()) bmi = weight/(height**2) if bmi < 18.5: print("Underweight") elif bmi < 25 and bmi >= 18.5: print("Normal") elif bmi < 30 and bmi >= 25: print("Overweight") elif bmi >= 30: print("Obesity")

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 " ???