+ 1

Why "invalid syntax"?

I don't why it keeps telling me that line 4 of my code is "invalid syntax": weight = int(input()) height = float((input()) BMI = weight / (height ** 2) if BMI < 18.5: print("Underweight") elif 18.5 <= BMI < 25: print("Normal") elif 25 <= BMI < 30: print("Overweight") else: print("Obesity")

25th Mar 2022, 6:42 AM
lilyli
3 Answers
+ 1
Thank you soooo much!!!! I solved it!!! OMG it bothered me for such a long time! Dear friend!!Thank you again.
25th Mar 2022, 7:30 AM
lilyli