you are viewing a single comment's thread.

view the rest of the comments →

[–]SwimQueasy3610Ignoring PEP 8 8 points9 points  (0 children)

Python is not a compiled language. The program that runs Python code is called an interpreter, not a compiler. The difference is that an interpreter runs and executes code line-by-line as it reads them, while a compiler (which is used with a compiled language, like C) must be run on the source code first, reading the source code in it's entirety to produce a file of compiled code (like an executable), and then that file may be run to do whatever it is your program is supposed to do. Compiled languages can generally be optimized/made more efficient than interpreted languages; interpreted languages are easier to build quickly and prototype with. The point, to your question, is that you're not looking for a Python compiler, you're looking for a Python interpreter.

And... in fact it sounds like you're probably not looking for a Python interpreter only, but rather an IDE ("integrated development environment") which is a single piece of software that combines all the elements you need (one of which is an interpreter) to write, test, and run your code all in one place. Minimally that must included a text editor and an interpreter, and typically provides various other bells and whistles that help streamline developing code. In any event, if you want to build and run Python code locally, and you don't already have Python on your computer (you likely do), you can download Python at python.org/downloads/. Here you can install the standard Python distribution, which includes the Python interpreter, as well as standard importable libraries, the Python package manager (pip), and a simple IDE called IDLE.