0% found this document useful (0 votes)
43 views18 pages

Introduction To Python

Python is a high-level programming language created by Guido van Rossum in 1991, it is easy to learn and use due to its simple syntax and structure as well as a broad standard library, and it can be used for a wide range of applications including web development, software development, databases, games, desktop applications, and more.

Uploaded by

kartikaryan9250
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
Download as pdf or txt
0% found this document useful (0 votes)
43 views18 pages

Introduction To Python

Python is a high-level programming language created by Guido van Rossum in 1991, it is easy to learn and use due to its simple syntax and structure as well as a broad standard library, and it can be used for a wide range of applications including web development, software development, databases, games, desktop applications, and more.

Uploaded by

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

Introduction:

computer to
An ordered set of instructions to be cxecuted by a

carry outa specific task is called a program.

Language used to specify this set of instructions to the computer is

called a programming languag.


As we know that computers understand the language of Os and ls
which is called machine language or low level language.

.Howcver, it is difficult for humans to writc or comprchend


instructions using Os and Is.

This led to the advent of high-level programming languages like


Python, C++, Visual Basic, PHP, Java that are easier to manage by
humans but are not directly understood by the computer
Python-The High Level Language:

Python is aprogramming language which w a s created


by Guido Van Rossum in Centrum Wiskunde &
Informatica.

The language was publicly released in 1991.

got its n a m e from a BBC comedy


It series from 1970s
Monty Python's Flying Circus'.
It be used to follow both procedural approach and
can

object-oriented approach of programming.


Python has a lot of functionalities which makes it so

popular to use.
Python- The High Level Language:
Pythonisaprogramming language which was created
by Guido Van Rossum in Ccntrum Wiskunde &
Informatica.

The language was publicly released in 1991.

it got its name froma BBC comedy series from 1970s


Monty Python's Flying Circus.
It can be used to follow both proccdural approach and
object-oricnted approach of programming.

Python has a lot of functionalities which makes it so

popular to use.
Features of Python
There are various programming languages like isp. Prolog.
C+, Java and Python.

popularity because of
out of these, Python gains a maximum

the following reasons:

Easy to learn, read and maintain

A Broad Standard library


Interactive Mode

Portability and Compatibility

Extendable

Databases and Scalable


Features of Python:

E a s y to learn, read and maintain-


Python has few keywords, simple structure and a
clearly defined syntax.

Python allows anyone to lcarn thc language quickly


A program written in Python is fairly casy-to-maintain.
Fcatures ofPython:
ABroad Standardlibrary
CC
Python has a huge bunch oflibraries
with plentyof built-in functions to
solve a varietyof problems. OPyTorch Tensorflow

Scrapy
theano NumPy

pandas K Keras
Features of Python:

Interactive Mode
Python has support for a n interactive mode which allows
interactive testing and debugging of snippets of code.
Features of Python

Portability and Compatibility-


Python can run on a wide varicty of operating systems
and hardwarc platforms, and has the same interface
on all platforms.
Features of Python:

Extendable
We can add low-levcl modules to the Python interpreter.
customizc
These modules cnable programmers to add
to or

their tools to be more efficient.


Features of Python:

Databases and Scalable- source and


interfaces to all major open
Python provides with a better structure and
commercial databases along
than shell scripting
for much larger programs
support

SQLite MysQL
Applications of Python:

Web Software Database Game


Development Development Access Development

Desktop Network 3D Graphics


Education
Applications Programming
Note:

Python is a high level language.

it is a frece and open sourcc language.


It is an interpreted language., as Python programs are
executed by an interpreter.
Python is case-sensitive.
Need of Translator:
A program written in a high-lcvel language is called
source code.

Language translators like compilers and interpreters


are necded to translate the source code into machine
language.
Python uses a n interpreter to convert its instructions
into machine language, so that it c a n be understood
by the computer.
Introduction:
An interpreter processes the program statements one
by one, first translating and then cxecuting.
This process is continued until a n crror is encounterecd
or the whole
program is cxecuted successtully
In both the
cases. programcxecution will stop.
On the contrary, a compilcr translatos the entire source
code. as a whole, into the object code.
After scanning the whole it
program, generates error
messagcs, if any.
Python Interpretcr:
Python doesn't convert its code into machine code
It actually compiles it within and converts it to byte
code (pyc or pyo) and this bytecode can't be
understood by the CPU

So we necd an interpreter called the python virtual


machinc to cxecute the bytc codes.
Integrated Development Environment (1DE):
An integrated development environment is a software
application that provides comprchensive tacilitics to
computer programmers for software devclopment.
An IDE normally consists of at leasta source code editor

build automation tools anda


debugger.
Default 1DE:
IDLE

DLE is an integratcd development


environment for Python, which has
been bundled with the default
implementation of the language
since 1.5.2b1

It is packaged a s a n optional part


of the Python packaging with
many linux distributions.

it is completcly written in Python


and the Tkinter GUI toolkit.
Our First Program:
Cmd

Notepad
Wordpad
Python Interpreter
IDLE

VS Code

Jupyter Notebook

Colab by Google

Surprise location

You might also like