In the previous section, we learned how important Python will be for Industrial Automation and how to download and install Python.
This section will continue where we left off starting Python Interpreter from the Windows Command Prompt.
This section continues from the previous section, where we had downloaded and installed the Python interpreter from the python.org website.
So, what is an interpreter anyway? All program scripts need to be converted into machine code, binary ones and zeros and are instructions to tell a specific processor what to do, for example, Intel or AMD.
This translation is accomplished at several levels above machine code instructions and depending on the type of translator we use; the higher-level translators often equate to better user-friendliness.
A compiler is a translator. It will take the entire human scripted high-level code (or source code) and convert it into machine low-level binary language (or object language) using processor instructions, to create a program for example an .exe program.
With this type of compilation, you can distribute your program without the source code files. C, Go, and Rust are compiled languages and are often not as user-friendly as interpreters.
The interpreter uses the high-level source program and converts the program line by line and then immediately executes it. So, every time you want to execute the code it must be translated again.
These interpreter | compiler translators are often very user-friendly. Python, Java, and Ruby are interpreted languages.