def spaces(): if spacey = 2: always a error here spacey = 1 if spacey = 1: spacey = 2
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?
Hi @BenjaminHipgrav , do you have other questions on the problem you are facing?
def spaces(): if spacey == 2: spacey = 1 elif spacey == 1: spacey = 2
spacey = 0
if spacey == 2:
spacey = 1
elif spacey == 1:
spacey = 2
i dont have any other questions or problems
You can mark the post that helped you most in this topic as a solution.