If Condition With And Operator In Python