Nested If Condition Example In Python