0

Who can help me on the code solution for how to write the code for BMI (body mass index) where the result gives the body type

Its in python for beginners....one of the practice questions

27th Nov 2021, 9:57 AM
VICTOR NSENGIYUMVA
5 ответов
+ 6
SoloProg , you are showing a 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 solution, when the op has not done and shown his attempt first. as a part of the community i believe 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. thanks for your understanding independent from my statement above , code coach exercises can only take demanded input and output. giving input prompt and output prompt as shown in your code, will not pass the test cases.
27th Nov 2021, 10:45 AM
Lothar
Lothar - avatar
+ 1
Lothar Thanks for your suggestion. but I think simple codes are better to give for beginners
27th Nov 2021, 2:09 PM
SoloProg
SoloProg - avatar
+ 1
Thanks alot for the help...SoloProg
1st Dec 2021, 5:26 AM
VICTOR NSENGIYUMVA
0
This code you could benefit from. height = float(input("Input your height in Feet: ")) print(height) weight = float(input("Input your weight in Kilogram: ")) print(weight) print("Your body mass index is: ", round(weight / (height * height), 2))
27th Nov 2021, 10:25 AM
SoloProg
SoloProg - avatar
27th Nov 2021, 5:06 PM
Simon Sauter
Simon Sauter - avatar