How To Write Logical Statements In Python