pygame.error: video system not initialized

You haven’t called pygame.init() anywhere. See the basic Intro tutorial, or the specific Import and Initialize tutorial, which explains: Before you can do much with pygame, you will need to initialize it. The most common way to do this is just make one call. This will attempt to initialize all the pygame modules for you. Not all pygame modules need … Read more

What do the symbol “=” and “==” mean in python?

When should i use the symbol ‘==’ and when only the symbol ‘=’ is enough? What does the symbol ‘==’ mean in python? I started python coding 2 weeks ago and these two symbols confused me sometimes. Several times when i used ‘=’, i would get an error message. After i changed it to ‘==’, … Read more

Running Python from Atom

The script package does exactly what you’re looking for: https://atom.io/packages/script The package’s documentation also contains the key mappings, which you can easily customize.

Pycharm exit code 0

You realize it is not part of the output right? It’s just additional information provided by the IDE’s console. The real program is just outputting hellow as expected. Saying that the Process finished with exit code 0 means that everything worked ok. If an exception occurs in your program or otherwise an exit is generated with non-zero argument, the IDE is … Read more

How to change default Python version?

updated for 2021] (Regardless if you are on Mac, Linux, or Windows:) If you are confused about how to start the latest version of python, on most platforms it is the case that python3 leaves your python2 installation intact (due to the above compatibility reasons); thus you can start python3 with the python3 command. Historically… The naming convention is that generally, most … Read more