Working of python engine
Python is a high level programming language when we write python code, the python processes having steps before giving us the output.
- Source code: first write python instruction in a.py file it is also called python code.
- Syntax checking: To check whether the code follows the syntax or not and check the code before execution.
- Compilation:If the syntax is correct, Python converts the source code into an intermediate form called bytecode.
- Bytecode:Bytecode is an intermediate code that can be understood and executed by the Python Virtual Machine (PVM).
- PVM (Python Virtual Machine):PVM executes the bytecode. During execution, if a problem occurs, Python may raise an exception/runtime error.
- Output:After successful execution, the program produces the required output.
Types of errors
Get Sreedeepikaeega’s stories in your inbox
Join Medium for free to get updates from this writer.
1.Syntax Error: Occurs when there is a mistake in the Python code’s syntax. It is detected before the program runs.
2.Exception Error: Occurs while the program is running, usually because of a problem during execution.





