+ 1
Someone should tell me what's wrong with this code, I've tried but itz not going through
height= float(input('What is your height?: ')) weight= float(input('What is your weight?: ')) bmi= weight/(height**2) print("Your BMI is" bmi) if bmi<15.5: print('No offense, but you probably anorexic') elif bmi<27.5: print('You maintain your body, Weldone') else: print('I ain't gonna go easy on, \nyou are fat')
2 Réponses
+ 7
I see two errors:
print('YourBMI is', bmi) # it needs a comma to separate values.
print("I ain't gonna go easy on you, \nyou are fat") # it needs double quotes because you use a single quote inside the string.
0
Thanks man