Explain Nested If Statement In Python