Inner Nested If Statement Example In Python