0% found this document useful (0 votes)
14 views5 pages

Introduction To Python

Uploaded by

sphoorthy1191
Copyright
© © All Rights Reserved
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
Download as pptx, pdf, or txt
0% found this document useful (0 votes)
14 views5 pages

Introduction To Python

Uploaded by

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

Introduction to

Python
Python is a general-purpose, high-level, interpreted, object-oriented
programming language used for various applications.

Python was developed by Guido Van Rossum in 1989 while working


at National Research Institute in the Netherlands. But officially,
Python
was made available to the public in 1991
Python was developed by Guido Van Rossum in 1989 while working
at National Research Institute in the Netherlands. But officially,
Python was made available to the public in 1991
Applications of Python

 GUI based desktop applications


 Graphic design, image processing applications, Games, and Scientific/ computational
Applications
 Web frameworks and applications
 Enterprise and Business applications
 Operating Systems
 Education
 Database Access
 Language Development
 Prototyping
 Software Development
Python Features

 Easy-to-learn − Python has few keywords, simple structure, and a clearly defined syntax. This
allows the student to pick up the language quickly.
 Easy-to-read − Python code is more clearly defined and visible to the eyes.
 Easy-to-maintain − Python's source code is fairly easy-to-maintain.
 A broad standard library − Python's bulk of the library is very portable and cross-platform
compatible on UNIX, Windows, and Macintosh.
 Interactive Mode − Python has support for an interactive mode which allows interactive testing
and debugging of snippets of code.
 Portable − Python can run on a wide variety of hardware platforms and has the same interface on
all platforms.
 Extendable − You can add low-level modules to the Python interpreter. These modules enable
programmers to add to or customize their tools to be more efficient.
 Databases − Python provides interfaces to all major commercial databases.
 GUI Programming − Python supports GUI applications that can be created and ported to many
system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X
Window system of Unix.
 Scalable − Python provides a better structure and support for large programs than shell scripting.
How a program works
How Python Internally Works?
 Code Editor: Code Editor is the first stage of programs where we write our source code. This is
human-readable code written according to Python’s syntax rules. It is where the execution of the
program starts first.
 Source code: The code written by a programmer in the code editor is then saved as a .py file in a
system. This file of Python is written in human-readable language that contains the instructions for the
computer.
 Compilation Stage: The compilation stage of Python is different from any other programming
language. Rather than compiling a source code directly into machine code. python compiles a source
code into a byte code. In the compilation stage python compiler also checks for syntax errors. after
checking all the syntax errors, if no such error is found then it generates a .pyc file that contains
bytecode.
 Python Virtual Machine(PVM): The bytecode then goes into the main part of the conversion is the
Python Virtual Machine(PVM). The PVM is the main runtime engine of Python. It is an interpreter that
reads and executes the bytecode file, line by line. Here In the Python Virtual Machine translate the byte
code into machine code which is the binary language consisting of 0s and 1s. The machine code is
highly optimized for the machine it is running on. This binary language is only understandable by the
CPU of a system.
 Running Program: At last, the CPU executes the given machine code and the main outcome of the
program comes as performing task and computation you scripted at the beginning of the stage in your
code editor.

You might also like