Python Code For Logical Operators