I copied your code to Jupyter Lab and ran it. It didn't raise any error. It opened pygame window with bright-green ball in upper left area which I assume is expected result.
I saved code into .py file and ran it under ipython. Same result. I ran it in terminal. Same result.
One possibility to debug is to copy code from this site back to your machine and check whether error is still there.
As side note - flake8 reported 13 problems with your code.
I saved code into .py file and ran it under ipython. Same result. I ran it in terminal. Same result.
One possibility to debug is to copy code from this site back to your machine and check whether error is still there.
As side note - flake8 reported 13 problems with your code.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.