Python Program Using Logical Operators