Python Use Variable In Nested If Statements In Google