22 Oct PMCA Saturday 18:30 Python Homework 21.10.16.
Question:
Create a new flask application or continue with the old one. Make a calculator to the BMI using a flask. Make an html file which contains the form to input the height and weight of the person in meters and kilograms. Then based on the input, calculate the BMI using the below formula:
BMI = weight / (height * height)
Also, based on the BMI, display whether the person is overweight, Normal and underweight.
If bmi is more than 25, then the person is overweight
If bmi is less than 18.5, the the person is underweight
Otherwise, the person is Normal.
Sorry, the comment form is closed at this time.