0% found this document useful (0 votes)
12 views

How Python Works

The Python Virtual Machine (PVM) converts Python bytecode into machine code for execution by the computer's processor. PVM works with an interpreter to convert bytecode from a Python source file into executable binary code.

Uploaded by

drratna
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
12 views

How Python Works

The Python Virtual Machine (PVM) converts Python bytecode into machine code for execution by the computer's processor. PVM works with an interpreter to convert bytecode from a Python source file into executable binary code.

Uploaded by

drratna
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

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

You might also like