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
5 odpowiedzi
+ 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.
+ 1
Lothar
Thanks for your suggestion.
but I think simple codes are better to give for beginners
+ 1
Thanks alot for the help...SoloProg
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))
0
Please take a look at the forum rules:
https://www.sololearn.com/Content-Creation-Guidelines/
https://www.sololearn.com/Discuss/1316935/?ref=app
Please always tag the language you're asking about.
https://code.sololearn.com/W3uiji9X28C1/?ref=app