TypeError: unsupported operand type(s) for &: 'float' and 'float'
问题 I wrote this simple program to calculate one's BMI. But I am unable to execute it complete. Below is my program, PROGRAM h = input("Please Enter your height in meters:") q = raw_input("Do you want to enter your weight in kg or lbs?") if q=="kg": w1 = input("Please Enter your weight in kgs:") bmi1 = w1/(h*h) print "Your BMI is", bmi1 if bmi1 <= 18.5: print "Your are underweight." if bmi1 > 18.5 & bmi1 < 24.9: print "Your weight is normal." if bmi1 > 25 & bmi1 < 29.9: print "Your are overweight