Pattern In Python Logical Operators And