Computer Science Canada "*** can't assign to operator" error |
Author: | OREO Speedwagon [ Tue Apr 05, 2011 1:08 pm ] | ||
Post subject: | "*** can't assign to operator" error | ||
I'm trying to make a simple version of Robot Finds Kitten as a Pygame project, and currently I'm trying to just draw a diagonal line of "box" items.
is the relevant part of my code. The error is occurring in the final line of the sample. It's a popup, which I've never gotten before (although to use pygame we're using 2.5 instead of 3... maybe popups are normal in this version?) and it says "*** can't assign to operator". I'm not changing i, though... just generating a location for my box. |
Author: | apython1992 [ Tue Apr 05, 2011 1:11 pm ] | ||
Post subject: | RE:"*** can\'t assign to operator" error | ||
This is because you are trying to assign a value to an expression. I'm guessing you want a list of boxes, which means you would use
|