Python converts the source code into a series of byte codes. So within python, compilation stage happens, but directly into byte code and this byte code can't be identified by CPU. So there is a need for a mediator to do this task. Here an interpreter comes into existence called the python virtual machine.