Ask coding questions

← Back to all posts
Is not equal to wont work with if and elif
ThatBetaGuy (0)

So this code wont work

I'm confused as to what i did wrong

Answered by Coder100 (19277) [earned 5 cycles]
View Answer
Coder100 (19277)

it will be false because you are using the or statement
so that means
the x value and the y value must not be the same, not or.

Coder100 (19277)

here is a more efficient code: