Need Help on Python number 26 BMI Calculator
Hello, i need help on my code for this calculator. Here are my two code samples and i think they look fine to me: weight = int(input()) height = float(input()) bmi = wheight/height**2 while bmi >0: if bmi <18.5: print("Underweight") elif bmi >=18.5 and <25: print("Normal") elif bmi >=25 and <30: print("Overweight") else print("Obesity") and weight = int(input()) height = float(input()) bmi = wheight/height**2 while bmi >0: if bmi <18.5: print("Underweight") elif bmi >=18.5 and <25: print("Normal") elif bmi >=25 and <30: print("Overweight") elif bmi >30: print("Obesity") And now im a bit confused about the output of the error message: File "/usercode/file0.py", line 8 if bmi >=18.5 and <25: ^ SyntaxError: invalid syntax Why does it tell me the lesser indicator ("<") is a "invalid syntax"? Thx in advance.