If-statement invalid syntax, but syntax is fine

if screen[v2, v1] == 1:
if number > 3:
screen_b[v2, v1] = 0
elif screen[v2, v1 == 0:
if number < 2:
screen_b[v2, v1] = 1

I keep getting an error on the “if number < 2:” line. I have stared at it for like 10 minutes and looked all over the place for a solution, but alas i have to rely on this.


Source: syntax

Leave a Reply