Sitemap

Working of python engine

1 min readAug 11, 2026

--

Python is a high level programming language when we write python code, the python processes having steps before giving us the output.

Press enter or click to view image in full size
  1. Source code: first write python instruction in a.py file it is also called python code.
  2. Syntax checking: To check whether the code follows the syntax or not and check the code before execution.
  3. Compilation:If the syntax is correct, Python converts the source code into an intermediate form called bytecode.
  4. Bytecode:Bytecode is an intermediate code that can be understood and executed by the Python Virtual Machine (PVM).
  5. PVM (Python Virtual Machine):PVM executes the bytecode. During execution, if a problem occurs, Python may raise an exception/runtime error.
  6. 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.

--

--