0
Please, What is wrong with this code?
a = 7 if a % 2 != 0: elif a > 4: print("hi") else: print("bye")
1 ответ
+ 5
Hi Jenkins!
I think you're trying to make a nested if-else statement. You should start the inner statements with if in a nested statement. So, you can change your elif statement as if instead. Always remember that if and elif statements should be aligned vertically(same block).
Similarly, a and outer if statement should be in a same vertical line.