You are on page 1of 2

CHAPTER 4: PYTHON

The Python Interpreter takes the code that you write and convert it into the language that the
computer’s hardware understands. It is used to execute Python command and flash the result
through Python Shell. These codes executes each and every line one after the other. The other
name for it is REPL. REPL stands for Read, Evaluate, Print and Loop as it reads the command,
evaluates it, print the result and further loop it back to the read the command. One can run the
Python Shell by clicking into the command prompt of the windows terminal or the power shell.
The Python Prompt is denoted by three greater than symbols (>>>). It does this each time one
runs a script. There are number of implementation of Python.

 CPython: The core implementation of the language.


 Jython: It is written in Java.
 PyPy: It is Written in Python.
 IronPython: It is used for .NET.
 MicroPython: It runs on Microcontrollers.

Working of Python Scripts

 Process the Statement of the Script.


 It compiles the source code to bytecode.
 The code is shipped for execution.
 Python Virtual Machine runs the code to its lowest level.

The Major difference between Modules and Scripts is that Scripts are top-level file, intended for
execution by the User whereas Modules are intended to be imported. One of the great features of
Python language is a huge range of Modules and Packages one can import to increase its
functionality.

PYTHON
SHELL/REPL

Page | 6
Page | 6

You might also like