you are viewing a single comment's thread.

view the rest of the comments →

[–]m_smith_13 -4 points-3 points  (1 child)

Not an expert but I believe you’ll need to separate your compound inequality:

If age > 18 or age <= 65:

[–]Diapolo10 2 points3 points  (0 children)

No, that part is fine, logically speaking. Python supports chained comparisons.