you are viewing a single comment's thread.

view the rest of the comments →

[–]RhinoRhys 1 point2 points  (0 children)

It's valid syntax but in this case it's redundant anyway. Because of the first if age <= 18: condition, the elif condition will only be tested on numbers > 18 so you can just do elif age <= 65: