Python Engine
Python Engine is the mechanism that runs the python program.When the programmer clicks on the run button. The source code is moved to the Python engine. In the Python engine, there are 3 parts
- Syntax Checker
- Compiler
- Python virtual machine
Syntax Checker
At first, the source code enters the syntax checker. The syntax checker checks whether the code follows the syntax or not. If there are any mistakes in syntax ,it throws Syntax Error.
Compiler
If there are no errors found in the syntax checker, the code enters into the compiler.The compiler converts the code from high-level language to byte code.
Get Greeshmagunda’s stories in your inbox
Join Medium for free to get updates from this writer.
Byte code is the combination of binary and English. The error occurs here is exception error or run time error.
Python Virtual Machine
Python virtual machine consists of interpreter. Interpreter runs the code line by line. It converts the bytecode to low level language. Low level language is the machine understable language.
After the conversation from source code to low-level language. The code runs and displays the output on the screen.





