I am using following code for resolution of Problem 1

```
weight=input("Enter your weight (in kgs): ")`
pref=input("What is your preferred unit of height? Type \"F\" for feet and \"M\" for meters: ")
if pref=="F":
feet=input("You will enter your height as feet and inches. First enter feet: ")
inches=input("Now enter inches: ")
meters= (float(feet)*0.3048) + (float(inches)*0.0254)
elif pref=="M":
meters=input("What is your height in meters: ")
BMI=float(weight)/(float(meters))**2
if BMI<18.5:
print("BMI = ", BMI, "Weight=",float(weight), "Height(mts)", float(meters), "feet=", feet, "inches=", inches, " :UNDERWEIGHT")
elif BMI>=18.5 and BMI<25:
print("BMI = ", BMI, "Weight=",float(weight), "Height(mts)", float(meters), "feet=", feet, "inches=", inches, " :NORMAL")
elif BMI>=25 and BMI<30:
print("BMI = ", BMI, "Weight=",float(weight), "Height(mts)", float(meters), "feet=", feet, "inches=", inches, " :OVERWEIGHT")
else:
print("BMI = ", BMI, "Weight=",float(weight), "Height(mts)", float(meters), "feet=", feet, "inches=", inches, " :VERY-OVERWEIGHT")
```

I am getting a junk value returned in feet and inches variable. Even if I donot press correct input at the terminal while entering the option of F and M then also the same junk values get into code execution and meters is converted badly and give me some junk value of BMI and hence the BMI result. That’s why I clearly printed the value of feet and inches in that case so that I can know what values system is fetching for them.

Is there a way to eliminate the junk in this case?