- 1
can anyone help me in making bmi calculator ?..
i am having doubt related to making bmi calculator by python will anyone help me ?
2 Answers
+ 5
Vansh, CHANDAN ROY ,
you are showing a really nice code to help someone solving a task. we all appreciate this very much!Â
(this is my personal statement - but it is not to criticize someone !!)
but there is an issue by giving a ready solution, when the op has not done and shown his attempt first.
as a part of the community i belive that learning by doing is more helpful, than just using a shared solution. we should act more as a mentor.Â
it is a very successful way when we are giving hints and help, so that the op is able to solve his task by himself. it would be great if you are going to help us to keep sololearn what it is:
âȘïža unique place to learn (we are a "self" learning platform!)
âȘïžan absolutely great community that is willing to help other peopleÂ
âȘïža great resource of people which has an unbelievable knowledge in coding and a long lasting experience
âȘïža place to meet people and to discuss with them all the possible points of view
thanks for your understanding
- 2
weight = float(input())
height= float(input())
BMI = weight / (height**2)
if BMI >= 30:
print("Obesity")
elif BMI >= 25:
print("Overweight")
elif BMI >= 18.5:
print('Normal')
else:
print("Underweight")