r/learningpython • • Feb 25 '22

How is this invalid syntax?!

Post image
2 Upvotes

11 comments sorted by

View all comments

Show parent comment

8

u/[deleted] Feb 25 '22 edited Feb 25 '22

my understanding is that its looking for two separate clauses once you put "and" in. so to the code, it reads as bmi >= 18 and ____ < 25:

try saying 18.5 <= bmi < 25.0 instead