Python Code Execution Process


1. Compiles .py source code to .pyc bytecode.
2. Bytcode is fed to the python virtual machine
3. The python virtual machine executes bytcode instructions

Bytecode Generation and Python Virtual Machine are two videos that do a good job of giving a brief and clear explanation.