Python Virtual Machine
Python Virtual Machine (PVM) is a program which provides programming
environment. The role of PVM is to convert the byte code instructions into machine
code so the computer can execute those machine code instructions and display the
output.
Interpreter converts the byte code into machine code and sends that machine code to
the computer processor for execution.
Interpreter
Binary Code /
Source Code/
Byte Code Executable Computer
Program Compile using Machine Code
Python Compiler Output
add.py add.pyc
PVM
Byte Code
• The compiled code of python source code is called byte code.
• Byte code is collection of mnemonics which understand by
PVM.
• Byte code is platform independent code.
Steps to Prepare Python Applications
• Download and Install Python Software
https://www.python.org/
• Write and execute python applications
Python IDE’S
• Python provided IDLE
• PyCharm IDE
• VS Code
• Jupyter Notebook
• Atom
• Spyder
• GoogleCollab
Code Editors
• Notepad
• Editplus
• Notepad++
• Sublime Text