I just need to know How the python executes its code.
I am not asking the code flow instead of how it converts the python code to the machine code that runs on the CPU.
While converting code to machine code, is it uses any compiler?
Because it saves .pyc file but Python is an interpreter.
The interpreter is different from the compiler.
The interpreter also converts the high level language code to the machine code.
What is the reason for the python uses the compiler?
After creating the .pyc file then, how and, when it will use this compiled file.
Please do not mark this question as duplicate... I searched for the answer but so many answers say only about the control flow of the program