def spaces():
if spacey = 2: always a error here
spacey = 1
if spacey = 1:
spacey = 2
1 Like
Hi @BenjaminHipgrav , welcome to the forums!
If this is your code, you did not declare the variable ‘spacey’.
Can you give the full code of the program?
1 Like
try
def spaces():
if spacey == 2:
spacey = 1
elif spacey == 1:
spacey = 2
3 Likes
spacey = 0
def spaces():
if spacey == 2:
spacey = 1
elif spacey == 1:
spacey = 2
1 Like
i dont have any other questions or problems
1 Like
You can mark the post that helped you most in this topic as a solution.
1 Like