How to use Logical operators and Conditional Statements in Python