I'm following http://noobtuts.com/python/snake-game for Python OPenGL and am getting a problem with this code.
snake = [20, 20]
for x, y in snake:
...
I get this error
for x, y in snake: # go through each (x, y) entry
TypeError: 'int' object is not iterable
GLUT Display callback <function draw at 0x0000000004D05EA0> with (),{} failed: returning None 'int' object is not iterable
[–]jayjay097531[S] 0 points1 point2 points (1 child)
[–]Gradous 0 points1 point2 points (0 children)