![]() |
number = 6 |
![]() |
|
![]() |
if number < 10: |
![]() |
if number % 2 == 0: |
| Condition 2: Given that condition 1 is true, check if the number is perfectly divisible by 2? Yes, number 6 is perfectly divisibly by 2. So this condition is true aswel. | |
![]() |
if number % 3 == 0: |
![]() |
print("The selected number is 6") |
![]() |
else: |
![]() |
print("The selected number is not perfectly divisible by 3") |
![]() |
else: |
![]() |
print("The selected number is not perfectly divisible by 2") |
![]() |
else: |
![]() |
print("The number is greater than 10") |