SlideShare a Scribd company logo
5
What is Python…?
 Python is a general purpose programming language that
is often applied in scripting roles.
 So, Python is programming language as well as scripting
language.
 Python is also called as Interpreted language
Most read
21
Running Python…
Once you're inside the Python interpreter, type in commands at
will.
• Examples:
>>> print 'Hello world'
Hello world
# Relevant output is displayed on subsequent lines without the >>>
symbol
>>> x = [0,1,2]
# Quantities stored in memory are not displayed by default
>>> x
# If a quantity is stored in memory, typing its name will display it
[0,1,2]
>>> 2+3
5
Most read
22
print(“Thank you”)
Most read
Presenta Presentation on
…PYTHON…
…PYTHON…
Presented by…
Minhajul Abedin Rahat(162-15-7689)
MD.RAKIB HASAN (162-15-7802)
Mantasha Altab Noyela(162-15-7673)
MD.Farok Hossain(162-15-7937)
Dept of CSE
Sec : B
Daffodil International University
Presented to…
Shalauddin(Lecturer)
Dept of Natural Science
Daffodil International University
Contents…
 What is Python…?
 Differences between program and scripting language
 History of Python
 Scope of Python
 Why do people use Python?
 Installing Python IDE
 Who uses python today
 What can I do with python
 A Sample Code
 Python code execution
 Running Python
What is Python…?
 Python is a general purpose programming language that
is often applied in scripting roles.
 So, Python is programming language as well as scripting
language.
 Python is also called as Interpreted language
Differences between
program and scripting
language
Program
 a program is executed (i.e.
the source is first compiled,
and the result of that
compilation is expected)
 A "program" in general, is a
sequence of instructions
written so that a computer
can perform certain task.
Scripting
 a script is interpreted
 A "script" is code written in
a scripting language. A
scripting language is nothing
but a type of programming
language in which we can
write code to control
another software application.
History…
 Invented in the Netherlands, early 90s by Guido
van Rossum
 Python was conceived in the late 1980s and its
implementation was started in December 1989
 Guido Van Rossum is fan of ‘Monty Python’s
Flying Circus’, this is a famous TV show in
Netherlands
 Named after Monty Python
 Open sourced from the beginning
Python’s Benevolent Dictator For
Life
“Python is an experiment in how
much freedom program-mers need.
Too much freedom and nobody can
read another's code; too little and
expressive-ness is endangered.”
- Guido van Rossum
Why was python created?
"My original motivation for creating Python was the feel need for a
higher level language in the Amoeba [Operating Systems] project.
I realized that the development of system administration use in
C was taking too long. Moreover, doing these things in the Bourne shell
wouldn't work for a variety of reasons. ...
So, there was a need for a language that would fill up the gap
between C and Bourne shell”
- Guido Van Rossum
Scope of Python…
 Science
- Bioinformatics
 System Administration
-Unix
-Web logic
-Web sphere
 Web Application Development
-CGI
-Python Servlets
Why do people use Python…?
Seem to be these:
Python is object-oriented :
Structure supports such concepts as polymorphism, operation
overloading, and multiple inheritance.
Indentation :
Indentation is one of the greatest feature in Python.
It's free (open source) :
Downloading and installing Python is free and easy
It’s Source code is easily accessible
It's powerful :
- Dynamic typing
- Library utilities
- Third party utilities
- Automatic memory management
It's portable :
- Python runs virtually every major platform used today
It's mixable :
- Python can be linked to components written in other languages easily
- Linking to fast, compiled code is useful to intensive problems
- Python/C integration is quite common
It's easy to use :
- It’s have no intermediate compile and link steps as in C/ C++
- Programs are compiled automatically from bytecode
- This gives Python the development speed without the performance
loss inherent in purely interpreted languages
It's easy to learn :
- Structure and syntax are pretty natural and easy to grasp
Installing Python…
 Python is pre-installed on most Unix
systems, including Linux and MAC OS X
 But for in Windows Operating Systems ,
user can download from the
https://www.python.org/downloads/
- from the above link download latest
version of python IDE and install, recent
version is 3.4.1 but most of them uses
version 2.7.7 only
 After installing the
Python Ver#2.7.7, go to
start menu then click
on python 2.7 in that
one you can select
python (command line)
it is prompt with >>>
Who uses python today…
 Python is being applied in real revenue-generating
products by real companies. For instance:
 Google makes extensive use of Python in its web search
system, and employs Python’s creator.
 Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and
IBM use Python for hardware testing.
 ESRI uses Python as an end-user customization tool for its
popular GIS mapping products.
 The YouTube video sharing service is largely written in
Python
What can I do with Python…?
 System programming
 Graphical User Interface Programming
 Internet Scripting
 Component Integration
 Database Programming
 Gaming, Images, XML , Robot and more
A Sample Code
x = 34 - 23 # A comment.
y = “Hello” # Another one.
z = 3.45
if z == 3.45 or y == “Hello”:
x = x + 1
y = y + “ World” # String concat.
print x
print y
Enough to understand the code…
 Indentation matters to code meaning
- Block structure indicated by indentation
 First assignment to a variable creates it
- Variable types don’t need to be declared.
- Python figures out the variable types on its own.
 Assignment is = and comparison is ==
 For numbers + - * / % are as expected
- Special use of + for string concatenation and % for string
formatting (as in C’s printf)
 Logical operators are words (and, or, not) not symbols
 The basic printing command is print
Python Code Execution …
 Python’s traditional runtime execution model: source code
you type is translated to byte code, which is then run by the
Python Virtual Machine. Your code is automatically compiled,
but then it is interpreted.
Source code extension is .py
Byte code extension is .pyc (compiled python code)
Running Python…
Once you're inside the Python interpreter, type in commands at
will.
• Examples:
>>> print 'Hello world'
Hello world
# Relevant output is displayed on subsequent lines without the >>>
symbol
>>> x = [0,1,2]
# Quantities stored in memory are not displayed by default
>>> x
# If a quantity is stored in memory, typing its name will display it
[0,1,2]
>>> 2+3
5
print(“Thank you”)

More Related Content

What's hot (20)

Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
Tahani Al-Manie
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Ayshwarya Baburam
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
Paige Bailey
 
Python Basics
Python BasicsPython Basics
Python Basics
primeteacher32
 
Python Basics
Python BasicsPython Basics
Python Basics
Pooja B S
 
Python Programming
Python ProgrammingPython Programming
Python Programming
Saravanan T.M
 
Python made easy
Python made easy Python made easy
Python made easy
Abhishek kumar
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
St. Petersburg College
 
Introduction python
Introduction pythonIntroduction python
Introduction python
Jumbo Techno e_Learning
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
Vanessa Rene
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
Nowell Strite
 
Python basics
Python basicsPython basics
Python basics
Hoang Nguyen
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Agung Wahyudi
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
Abhijeet Singh
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
Siddique Ibrahim
 
Python by Rj
Python by RjPython by Rj
Python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Exception Handling In Python | Exceptions In Python | Python Programming Tuto...
Exception Handling In Python | Exceptions In Python | Python Programming Tuto...Exception Handling In Python | Exceptions In Python | Python Programming Tuto...
Exception Handling In Python | Exceptions In Python | Python Programming Tuto...
Edureka!
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAChapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
Tahani Al-Manie
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
Paige Bailey
 
Python Basics
Python BasicsPython Basics
Python Basics
Pooja B S
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
Aakashdata
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
Vanessa Rene
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
Nowell Strite
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
Agung Wahyudi
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
Abhijeet Singh
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Exception Handling In Python | Exceptions In Python | Python Programming Tuto...
Exception Handling In Python | Exceptions In Python | Python Programming Tuto...Exception Handling In Python | Exceptions In Python | Python Programming Tuto...
Exception Handling In Python | Exceptions In Python | Python Programming Tuto...
Edureka!
 
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYAChapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Chapter 1 - INTRODUCTION TO PYTHON -MAULIK BORSANIYA
Maulik Borsaniya
 

Similar to Phython Programming Language (20)

intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
ANIKULSAIKH
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
TIB Academy
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
anaveenkumar4
 
Python programming-2-2048 (30 files merged).ppt
Python programming-2-2048 (30 files merged).pptPython programming-2-2048 (30 files merged).ppt
Python programming-2-2048 (30 files merged).ppt
pprince22982
 
Python programming notes all in one python ppt
Python programming notes all in one python pptPython programming notes all in one python ppt
Python programming notes all in one python ppt
pprince22982
 
python programminig and introduction.pptx
python programminig and introduction.pptxpython programminig and introduction.pptx
python programminig and introduction.pptx
urvashipundir04
 
introduction to python in computer graphics.pptx
introduction to python in computer graphics.pptxintroduction to python in computer graphics.pptx
introduction to python in computer graphics.pptx
urvashipundir04
 
Python is a high-level, interpreted programming language that emphasizes read...
Python is a high-level, interpreted programming language that emphasizes read...Python is a high-level, interpreted programming language that emphasizes read...
Python is a high-level, interpreted programming language that emphasizes read...
bikomaster9459
 
Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...
bikomaster9459
 
Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...
bikomaster9459
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
LakshmiNarayanaReddy48
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdf
gmadhu8
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
Arpittripathi45
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
Shivam Gupta
 
Python
PythonPython
Python
Shivam Gupta
 
Chapter 2: Basics of programming pyton programming
Chapter 2: Basics of programming pyton programmingChapter 2: Basics of programming pyton programming
Chapter 2: Basics of programming pyton programming
biniyamtiktok
 
Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
Mayank Sharma
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python Introduction
Python IntroductionPython Introduction
Python Introduction
Punithavel Ramani
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
ANIKULSAIKH
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
TIB Academy
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
anaveenkumar4
 
Python programming-2-2048 (30 files merged).ppt
Python programming-2-2048 (30 files merged).pptPython programming-2-2048 (30 files merged).ppt
Python programming-2-2048 (30 files merged).ppt
pprince22982
 
Python programming notes all in one python ppt
Python programming notes all in one python pptPython programming notes all in one python ppt
Python programming notes all in one python ppt
pprince22982
 
python programminig and introduction.pptx
python programminig and introduction.pptxpython programminig and introduction.pptx
python programminig and introduction.pptx
urvashipundir04
 
introduction to python in computer graphics.pptx
introduction to python in computer graphics.pptxintroduction to python in computer graphics.pptx
introduction to python in computer graphics.pptx
urvashipundir04
 
Python is a high-level, interpreted programming language that emphasizes read...
Python is a high-level, interpreted programming language that emphasizes read...Python is a high-level, interpreted programming language that emphasizes read...
Python is a high-level, interpreted programming language that emphasizes read...
bikomaster9459
 
Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...
bikomaster9459
 
Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...Python is a high-level, interpreted programming language known for its simpli...
Python is a high-level, interpreted programming language known for its simpli...
bikomaster9459
 
python-160403194316.pdf
python-160403194316.pdfpython-160403194316.pdf
python-160403194316.pdf
gmadhu8
 
python presntation 2.pptx
python presntation 2.pptxpython presntation 2.pptx
python presntation 2.pptx
Arpittripathi45
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
Shivam Gupta
 
Chapter 2: Basics of programming pyton programming
Chapter 2: Basics of programming pyton programmingChapter 2: Basics of programming pyton programming
Chapter 2: Basics of programming pyton programming
biniyamtiktok
 
Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
Mayank Sharma
 
Ad

More from R.h. Himel (16)

What is worksheet how to prepare worksheet
What is worksheet how to prepare worksheetWhat is worksheet how to prepare worksheet
What is worksheet how to prepare worksheet
R.h. Himel
 
Sources of finance to start a business
Sources of finance to start a businessSources of finance to start a business
Sources of finance to start a business
R.h. Himel
 
Openning a company
Openning a companyOpenning a company
Openning a company
R.h. Himel
 
Functional areas of a business
Functional areas of a businessFunctional areas of a business
Functional areas of a business
R.h. Himel
 
Financial and managerial accounting
Financial and managerial accountingFinancial and managerial accounting
Financial and managerial accounting
R.h. Himel
 
Export and import business
Export and import businessExport and import business
Export and import business
R.h. Himel
 
Entrepreneurship
EntrepreneurshipEntrepreneurship
Entrepreneurship
R.h. Himel
 
Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...
R.h. Himel
 
Adjusting Entries on Accounting
Adjusting Entries on AccountingAdjusting Entries on Accounting
Adjusting Entries on Accounting
R.h. Himel
 
How does Ethics important for Accounting
How does Ethics important for AccountingHow does Ethics important for Accounting
How does Ethics important for Accounting
R.h. Himel
 
Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)
R.h. Himel
 
Mobile phone
Mobile phone Mobile phone
Mobile phone
R.h. Himel
 
Mat-131 presentation
Mat-131 presentationMat-131 presentation
Mat-131 presentation
R.h. Himel
 
Data structure-project Queue
Data structure-project Queue Data structure-project Queue
Data structure-project Queue
R.h. Himel
 
Predicates and quantifiers presentation topics
Predicates  and quantifiers  presentation topicsPredicates  and quantifiers  presentation topics
Predicates and quantifiers presentation topics
R.h. Himel
 
Isomorphism Graph
Isomorphism Graph Isomorphism Graph
Isomorphism Graph
R.h. Himel
 
What is worksheet how to prepare worksheet
What is worksheet how to prepare worksheetWhat is worksheet how to prepare worksheet
What is worksheet how to prepare worksheet
R.h. Himel
 
Sources of finance to start a business
Sources of finance to start a businessSources of finance to start a business
Sources of finance to start a business
R.h. Himel
 
Openning a company
Openning a companyOpenning a company
Openning a company
R.h. Himel
 
Functional areas of a business
Functional areas of a businessFunctional areas of a business
Functional areas of a business
R.h. Himel
 
Financial and managerial accounting
Financial and managerial accountingFinancial and managerial accounting
Financial and managerial accounting
R.h. Himel
 
Export and import business
Export and import businessExport and import business
Export and import business
R.h. Himel
 
Entrepreneurship
EntrepreneurshipEntrepreneurship
Entrepreneurship
R.h. Himel
 
Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...Does an engineering student have to study different types of non engineering ...
Does an engineering student have to study different types of non engineering ...
R.h. Himel
 
Adjusting Entries on Accounting
Adjusting Entries on AccountingAdjusting Entries on Accounting
Adjusting Entries on Accounting
R.h. Himel
 
How does Ethics important for Accounting
How does Ethics important for AccountingHow does Ethics important for Accounting
How does Ethics important for Accounting
R.h. Himel
 
Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)Corporate social and responsibility (CRS)
Corporate social and responsibility (CRS)
R.h. Himel
 
Mat-131 presentation
Mat-131 presentationMat-131 presentation
Mat-131 presentation
R.h. Himel
 
Data structure-project Queue
Data structure-project Queue Data structure-project Queue
Data structure-project Queue
R.h. Himel
 
Predicates and quantifiers presentation topics
Predicates  and quantifiers  presentation topicsPredicates  and quantifiers  presentation topics
Predicates and quantifiers presentation topics
R.h. Himel
 
Isomorphism Graph
Isomorphism Graph Isomorphism Graph
Isomorphism Graph
R.h. Himel
 
Ad

Recently uploaded (20)

Smart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in IndiaSmart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
fincrifcontent
 
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad LevelLDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDM & Mia eStudios
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_HyderabadWebcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
Coleoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptxColeoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptx
Arshad Shaikh
 
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
Pfeiffer "Secrets to Changing Behavior in Scholarly Communication: A 2025 NIS...
National Information Standards Organization (NISO)
 
Strengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptxStrengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptx
SteffMusniQuiballo
 
How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18
Celine George
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdf
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdfForestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdf
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdf
ChalaKelbessa
 
Cloud Computing ..PPT ( Faizan ALTAF )..
Cloud Computing ..PPT ( Faizan ALTAF )..Cloud Computing ..PPT ( Faizan ALTAF )..
Cloud Computing ..PPT ( Faizan ALTAF )..
faizanaltaf231
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptxUnit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...
EduSkills OECD
 
Adam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational PsychologyAdam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational Psychology
Prachi Shah
 
How to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 SalesHow to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 Sales
Celine George
 
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in IndiaSmart Borrowing: Everything You Need to Know About Short Term Loans in India
Smart Borrowing: Everything You Need to Know About Short Term Loans in India
fincrifcontent
 
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad LevelLDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDMMIA Reiki Yoga S8 Free Workshop Grad Level
LDM & Mia eStudios
 
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptxAnalysis of Quantitative Data Parametric and non-parametric tests.pptx
Analysis of Quantitative Data Parametric and non-parametric tests.pptx
Shrutidhara2
 
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 1 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition IILDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDMMIA Free Reiki Yoga S9 Grad Level Intuition II
LDM & Mia eStudios
 
Optimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptxOptimization technique in pharmaceutical product development.pptx
Optimization technique in pharmaceutical product development.pptx
UrmiPrajapati3
 
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_HyderabadWebcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Webcrawler_Mule_AIChain_MuleSoft_Meetup_Hyderabad
Veera Pallapu
 
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKANMATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
MATERI PPT TOPIK 4 LANDASAN FILOSOFIS PENDIDIKAN
aditya23173
 
Coleoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptxColeoptera: The Largest Insect Order.pptx
Coleoptera: The Largest Insect Order.pptx
Arshad Shaikh
 
Strengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptxStrengthened Senior High School - Landas Tool Kit.pptx
Strengthened Senior High School - Landas Tool Kit.pptx
SteffMusniQuiballo
 
How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18How to Manage Maintenance Request in Odoo 18
How to Manage Maintenance Request in Odoo 18
Celine George
 
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptxSEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
SEXUALITY , UNWANTED PREGANCY AND SEXUAL ASSAULT .pptx
PoojaSen20
 
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdf
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdfForestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdf
Forestry Model Exit Exam_2025_Wollega University, Gimbi Campus.pdf
ChalaKelbessa
 
Cloud Computing ..PPT ( Faizan ALTAF )..
Cloud Computing ..PPT ( Faizan ALTAF )..Cloud Computing ..PPT ( Faizan ALTAF )..
Cloud Computing ..PPT ( Faizan ALTAF )..
faizanaltaf231
 
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17Different pricelists for different shops in odoo Point of Sale in Odoo 17
Different pricelists for different shops in odoo Point of Sale in Odoo 17
Celine George
 
Unit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptxUnit 3 Poster Sketches with annotations.pptx
Unit 3 Poster Sketches with annotations.pptx
bobby205207
 
Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...Stewart Butler - OECD - How to design and deliver higher technical education ...
Stewart Butler - OECD - How to design and deliver higher technical education ...
EduSkills OECD
 
Adam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational PsychologyAdam Grant: Transforming Work Culture Through Organizational Psychology
Adam Grant: Transforming Work Culture Through Organizational Psychology
Prachi Shah
 
How to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 SalesHow to Create Quotation Templates Sequence in Odoo 18 Sales
How to Create Quotation Templates Sequence in Odoo 18 Sales
Celine George
 

Phython Programming Language

  • 2. Presented by… Minhajul Abedin Rahat(162-15-7689) MD.RAKIB HASAN (162-15-7802) Mantasha Altab Noyela(162-15-7673) MD.Farok Hossain(162-15-7937) Dept of CSE Sec : B Daffodil International University
  • 3. Presented to… Shalauddin(Lecturer) Dept of Natural Science Daffodil International University
  • 4. Contents…  What is Python…?  Differences between program and scripting language  History of Python  Scope of Python  Why do people use Python?  Installing Python IDE  Who uses python today  What can I do with python  A Sample Code  Python code execution  Running Python
  • 5. What is Python…?  Python is a general purpose programming language that is often applied in scripting roles.  So, Python is programming language as well as scripting language.  Python is also called as Interpreted language
  • 6. Differences between program and scripting language Program  a program is executed (i.e. the source is first compiled, and the result of that compilation is expected)  A "program" in general, is a sequence of instructions written so that a computer can perform certain task. Scripting  a script is interpreted  A "script" is code written in a scripting language. A scripting language is nothing but a type of programming language in which we can write code to control another software application.
  • 7. History…  Invented in the Netherlands, early 90s by Guido van Rossum  Python was conceived in the late 1980s and its implementation was started in December 1989  Guido Van Rossum is fan of ‘Monty Python’s Flying Circus’, this is a famous TV show in Netherlands  Named after Monty Python  Open sourced from the beginning
  • 8. Python’s Benevolent Dictator For Life “Python is an experiment in how much freedom program-mers need. Too much freedom and nobody can read another's code; too little and expressive-ness is endangered.” - Guido van Rossum
  • 9. Why was python created? "My original motivation for creating Python was the feel need for a higher level language in the Amoeba [Operating Systems] project. I realized that the development of system administration use in C was taking too long. Moreover, doing these things in the Bourne shell wouldn't work for a variety of reasons. ... So, there was a need for a language that would fill up the gap between C and Bourne shell” - Guido Van Rossum
  • 10. Scope of Python…  Science - Bioinformatics  System Administration -Unix -Web logic -Web sphere  Web Application Development -CGI -Python Servlets
  • 11. Why do people use Python…? Seem to be these: Python is object-oriented : Structure supports such concepts as polymorphism, operation overloading, and multiple inheritance. Indentation : Indentation is one of the greatest feature in Python. It's free (open source) : Downloading and installing Python is free and easy It’s Source code is easily accessible
  • 12. It's powerful : - Dynamic typing - Library utilities - Third party utilities - Automatic memory management It's portable : - Python runs virtually every major platform used today
  • 13. It's mixable : - Python can be linked to components written in other languages easily - Linking to fast, compiled code is useful to intensive problems - Python/C integration is quite common It's easy to use : - It’s have no intermediate compile and link steps as in C/ C++ - Programs are compiled automatically from bytecode - This gives Python the development speed without the performance loss inherent in purely interpreted languages It's easy to learn : - Structure and syntax are pretty natural and easy to grasp
  • 14. Installing Python…  Python is pre-installed on most Unix systems, including Linux and MAC OS X  But for in Windows Operating Systems , user can download from the https://www.python.org/downloads/ - from the above link download latest version of python IDE and install, recent version is 3.4.1 but most of them uses version 2.7.7 only
  • 15.  After installing the Python Ver#2.7.7, go to start menu then click on python 2.7 in that one you can select python (command line) it is prompt with >>>
  • 16. Who uses python today…  Python is being applied in real revenue-generating products by real companies. For instance:  Google makes extensive use of Python in its web search system, and employs Python’s creator.  Intel, Cisco, Hewlett-Packard, Seagate, Qualcomm, and IBM use Python for hardware testing.  ESRI uses Python as an end-user customization tool for its popular GIS mapping products.  The YouTube video sharing service is largely written in Python
  • 17. What can I do with Python…?  System programming  Graphical User Interface Programming  Internet Scripting  Component Integration  Database Programming  Gaming, Images, XML , Robot and more
  • 18. A Sample Code x = 34 - 23 # A comment. y = “Hello” # Another one. z = 3.45 if z == 3.45 or y == “Hello”: x = x + 1 y = y + “ World” # String concat. print x print y
  • 19. Enough to understand the code…  Indentation matters to code meaning - Block structure indicated by indentation  First assignment to a variable creates it - Variable types don’t need to be declared. - Python figures out the variable types on its own.  Assignment is = and comparison is ==  For numbers + - * / % are as expected - Special use of + for string concatenation and % for string formatting (as in C’s printf)  Logical operators are words (and, or, not) not symbols  The basic printing command is print
  • 20. Python Code Execution …  Python’s traditional runtime execution model: source code you type is translated to byte code, which is then run by the Python Virtual Machine. Your code is automatically compiled, but then it is interpreted. Source code extension is .py Byte code extension is .pyc (compiled python code)
  • 21. Running Python… Once you're inside the Python interpreter, type in commands at will. • Examples: >>> print 'Hello world' Hello world # Relevant output is displayed on subsequent lines without the >>> symbol >>> x = [0,1,2] # Quantities stored in memory are not displayed by default >>> x # If a quantity is stored in memory, typing its name will display it [0,1,2] >>> 2+3 5