Next Line Function In Python Boolean Operators