The and operator returns True only if both sides are True: python True and True # True True and False # False False and True # False False and False # False Use and when multiple conditions must all be met.
For example, to check if a number is in a range: python if x >= 10 and x <= 20: print("x is between 10 and 20") Python also supports a shorthand: 10 <= x <= 20 does the same thing. This chained comparison is cleaner for range checks.