Skip to content Skip to sidebar Skip to footer

Is There Anything Wrong With The Python Code Itself?

Here is the original code I copied from Make Games with Python.2-Raspberry Pi, page 33: import pygame, sys import pygame.locals as GAME_GLOBALS import pygame.event as GAME_EVENTS

Solution 1:

It is hard to tell, but it looks like Python 3 is in use, and I suspect the book is requiring Python 2. If you can re-run the program with Python 2, you may find you have far fewer errors (if any). If you do have a new error, you can then ask a new Stack Overflow question about that. Remember to be precise about the problem, and to include the error message(s) you get.


Post a Comment for "Is There Anything Wrong With The Python Code Itself?"