Logical Function In Python W3schools