01 / 06
Meeting two conditions at once
Sometimes you need two conditions together — "18 or over and under 65". For that, join them with and.
and is True only when both hold. If either one fails, it is False.
age = 30if age >= 18 and age < 65: print("standard")Result
standard