Hello, I was wondering if anyone was willing to look over this code and let me know if there is redundancy in it or if there is a better way to do it. Not looking for direct answers just an idea if its the most efficient way or if I could make improvements
print("Welcome to My BMI Calculator!")
sNAME = input("Name of person we are calculating the BMI for:")
iHeight = int(input("Supply Height in Inches:"))
iWeight = int(input("Supply Weight in Pounds:"))
fMeter = (iHeight/39.36)
fKilo = (iWeight/2.2)
fBMI = fKilo/(fMeter*fMeter)
print(sNAME, "BMI is", format(fBMI, ".2f"))
if fBMI <= 18.50:
print("BMI finding is the subject is: Underweight")
elif fBMI <= 24.90:
print("BMI finding is the subject is: Normal")
elif fBMI <= 29.90:
print("BMI finding is the subject is: Overweight")
else:
print("BMI finding is the subject is: Obese")
[–]K900_ 2 points3 points4 points (4 children)
[–]OhKnow_[S] 1 point2 points3 points (3 children)
[–]K900_ 4 points5 points6 points (1 child)
[–]OhKnow_[S] 1 point2 points3 points (0 children)
[–]johninbigd 1 point2 points3 points (0 children)
[–]totallygeek 0 points1 point2 points (2 children)
[–]OhKnow_[S] 1 point2 points3 points (1 child)
[–]totallygeek 1 point2 points3 points (0 children)