the code im using to keep score isnt working
this is the error
Parse Error: Assignment is not allowed inside an expression.
the code im using to keep score isnt working
this is the error
Parse Error: Assignment is not allowed inside an expression.
I think what you meant to do is this:
p_1_score.text = "P1 " + str(p1_score)
But it’s better to do it this way:
p_1_score.text = "P1 %s" % p1_score
You can refer to this article in the future:
Yes, your second = needs to be a +.
i genuinely forgot about this because i figured out the problem after posting and couldn’t delete