4
Most read
14
Most read
18
Most read
K M Kiran
jumbotechnos@gmail.com
Agenda
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
perceived need for a higher level language in the
Amoeba [Operating Systems] project.
I realized that the development of system
Moreover, doing these things in the Bourne
administration utilities in C was taking too long.
shell
wouldn't work for a variety of reasons. ...
So, there was a need for a language that
would bridge the gap between C and the shell”
- Guido VanRossum
Scope of Python
Science
- Bioinformatics
SystemAdministration
-Unix
-Web logic
-Web sphere
WebApplication Development
-CGI
-Jython – Servlets
Testing scripts
Why do people use Python…?
The following primary factors cited by Python users
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 future in Python.
It's free (open source)
Downloading and installing Python is free and easy
Source code is easily accessible
It's powerful
- Dynamic typing
- Built-in types and tools
- Library utilities
- Third party utilities (e.g. Numeric, NumPy, SciPy)
-Automatic memory management
It's portable
- Python runs virtually every major platform used today
-As long as you have a compatible Python interpreter installed,
Python programs will run in exactly the same manner,
irrespective of platform.
It's mixable
- Python can be linked to components written in other languages easily
- Linking to fast, compiled code is useful to computationally intensive
problems
- - Python/C integration is quite common
It's easy to use
- No intermediate compile and link steps as in C/ C++
- Python programs are compiled automatically to an intermediate
form called bytecode, which the interpreter then reads
- This gives Python the development speed of an interpreter without
the performance loss inherent in purely interpreted languages
It's easy to learn
- Structure and syntax are pretty intuitive and easy to grasp
Installing Python
Python is pre-installed on most Unix systems, including
Linux and MAC OSX
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
# A comment.
# Another one.
x = 34 - 23
y = “Hello”
z = 3.45
if z == 3.45 or y == “Hello”:
x = x + 1
# String concat.y = y + “ World”
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

More Related Content

PPTX
Python Programming Language
PPTX
Python presentation by Monu Sharma
PPTX
Phython Programming Language
PPTX
Python ppt
PPT
Python ppt
PPTX
Python Tutorial Part 1
PPTX
Python programming introduction
PDF
Python made easy
Python Programming Language
Python presentation by Monu Sharma
Phython Programming Language
Python ppt
Python ppt
Python Tutorial Part 1
Python programming introduction
Python made easy

What's hot (20)

PPT
Introduction to Python
PPTX
Introduction to python
PPTX
Beginning Python Programming
PPTX
Python Basics
PDF
Python Basics | Python Tutorial | Edureka
PDF
Variables & Data Types In Python | Edureka
PDF
Overview of python 2019
PDF
Introduction To Python | Edureka
PDF
Introduction to python
PPT
Intro to Python
PPTX
python presntation 2.pptx
PPT
Introduction to Python
PPTX
Introduction to python
PDF
Introduction to python programming
PPT
Python Programming ppt
PPTX
Python programming | Fundamentals of Python programming
PDF
Python Programming Language | Python Classes | Python Tutorial | Python Train...
PPTX
Programming
Introduction to Python
Introduction to python
Beginning Python Programming
Python Basics
Python Basics | Python Tutorial | Edureka
Variables & Data Types In Python | Edureka
Overview of python 2019
Introduction To Python | Edureka
Introduction to python
Intro to Python
python presntation 2.pptx
Introduction to Python
Introduction to python
Introduction to python programming
Python Programming ppt
Python programming | Fundamentals of Python programming
Python Programming Language | Python Classes | Python Tutorial | Python Train...
Programming
Ad

Similar to Introduction python (20)

PPTX
Python Tutorial | Python Programming Language
PPTX
Introduction to python for Beginners
PDF
intro.pptx (1).pdf
PPTX
Python tutorial for beginners - Tib academy
PPTX
Python Programming Draft PPT.pptx
PPTX
python programminig and introduction.pptx
PPTX
introduction to python in computer graphics.pptx
PPTX
Python is a high-level, interpreted programming language that emphasizes read...
PPTX
Python is a high-level, interpreted programming language known for its simpli...
PPTX
Python is a high-level, interpreted programming language known for its simpli...
PPT
Python programming-2-2048 (30 files merged).ppt
PPT
Python programming notes all in one python ppt
PPTX
introduction to python in detail including .pptx
PPTX
Python internship and what is python and use
PDF
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
PPTX
Introduction to python
DOCX
Seminar report on python 3 course
PDF
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
DOCX
Seminar report On Python
PPT
1-ppt-python.ppt
Python Tutorial | Python Programming Language
Introduction to python for Beginners
intro.pptx (1).pdf
Python tutorial for beginners - Tib academy
Python Programming Draft PPT.pptx
python programminig and introduction.pptx
introduction to python in computer graphics.pptx
Python is a high-level, interpreted programming language that emphasizes read...
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 programming-2-2048 (30 files merged).ppt
Python programming notes all in one python ppt
introduction to python in detail including .pptx
Python internship and what is python and use
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
Introduction to python
Seminar report on python 3 course
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Seminar report On Python
1-ppt-python.ppt
Ad

Recently uploaded (20)

PDF
GSA-Past-Papers-2010-2024-2.pdf CSS examination
PDF
Physical pharmaceutics two in b pharmacy
PDF
CHALLENGES FACED BY TEACHERS WHEN TEACHING LEARNERS WITH DEVELOPMENTAL DISABI...
PDF
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
PPTX
Ppt obs emergecy.pptxydirnbduejguxjjdjidjdbuc
PDF
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
PPTX
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
PPTX
CHROMIUM & Glucose Tolerance Factor.pptx
PDF
HSE 2022-2023.pdf الصحه والسلامه هندسه نفط
PPT
hsl powerpoint resource goyloveh feb 07.ppt
PDF
horaris de grups del curs 2025-2026 de l'institut
PDF
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
DOCX
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
PPTX
FILIPINO 8 Q2 WEEK 1(DAY 1).power point presentation
PDF
Jana-Ojana Finals 2025 - School Quiz by Pragya - UEMK Quiz Club
PDF
LATAM’s Top EdTech Innovators Transforming Learning in 2025.pdf
PPTX
Approach to a child with acute kidney injury
PPTX
Neurological complocations of systemic disease
PPTX
climate change of delhi impacts on climate and there effects
PDF
English 2nd semesteNotesh biology biopsy results from the other day and I jus...
GSA-Past-Papers-2010-2024-2.pdf CSS examination
Physical pharmaceutics two in b pharmacy
CHALLENGES FACED BY TEACHERS WHEN TEACHING LEARNERS WITH DEVELOPMENTAL DISABI...
V02-Session-4-Leadership-Through-Assessment-MLB.pdf
Ppt obs emergecy.pptxydirnbduejguxjjdjidjdbuc
Kalaari-SaaS-Founder-Playbook-2024-Edition-.pdf
ENGlishGrade8_Quarter2_WEEK1_LESSON1.pptx
CHROMIUM & Glucose Tolerance Factor.pptx
HSE 2022-2023.pdf الصحه والسلامه هندسه نفط
hsl powerpoint resource goyloveh feb 07.ppt
horaris de grups del curs 2025-2026 de l'institut
WHAT NURSES SAY_ COMMUNICATION BEHAVIORS ASSOCIATED WITH THE COMP.pdf
HELMET DETECTION AND BIOMETRIC BASED VEHICLESECURITY USING MACHINE LEARNING.docx
FILIPINO 8 Q2 WEEK 1(DAY 1).power point presentation
Jana-Ojana Finals 2025 - School Quiz by Pragya - UEMK Quiz Club
LATAM’s Top EdTech Innovators Transforming Learning in 2025.pdf
Approach to a child with acute kidney injury
Neurological complocations of systemic disease
climate change of delhi impacts on climate and there effects
English 2nd semesteNotesh biology biopsy results from the other day and I jus...

Introduction python

  • 2. Agenda 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
  • 3. 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
  • 4. 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.
  • 5. 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
  • 6. 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
  • 7. Why was python created? "My original motivation for creating Python was the perceived need for a higher level language in the Amoeba [Operating Systems] project. I realized that the development of system Moreover, doing these things in the Bourne administration utilities in C was taking too long. shell wouldn't work for a variety of reasons. ... So, there was a need for a language that would bridge the gap between C and the shell” - Guido VanRossum
  • 8. Scope of Python Science - Bioinformatics SystemAdministration -Unix -Web logic -Web sphere WebApplication Development -CGI -Jython – Servlets Testing scripts
  • 9. Why do people use Python…? The following primary factors cited by Python users 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 future in Python. It's free (open source) Downloading and installing Python is free and easy Source code is easily accessible
  • 10. It's powerful - Dynamic typing - Built-in types and tools - Library utilities - Third party utilities (e.g. Numeric, NumPy, SciPy) -Automatic memory management It's portable - Python runs virtually every major platform used today -As long as you have a compatible Python interpreter installed, Python programs will run in exactly the same manner, irrespective of platform.
  • 11. It's mixable - Python can be linked to components written in other languages easily - Linking to fast, compiled code is useful to computationally intensive problems - - Python/C integration is quite common It's easy to use - No intermediate compile and link steps as in C/ C++ - Python programs are compiled automatically to an intermediate form called bytecode, which the interpreter then reads - This gives Python the development speed of an interpreter without the performance loss inherent in purely interpreted languages It's easy to learn - Structure and syntax are pretty intuitive and easy to grasp
  • 12. Installing Python Python is pre-installed on most Unix systems, including Linux and MAC OSX 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
  • 13. 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 >>>
  • 14. 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
  • 15. What can I do with Python…? System programming Graphical User Interface Programming Internet Scripting Component Integration Database Programming Gaming, Images, XML , Robot and more
  • 16. A Sample Code # A comment. # Another one. x = 34 - 23 y = “Hello” z = 3.45 if z == 3.45 or y == “Hello”: x = x + 1 # String concat.y = y + “ World” print x print y
  • 17. 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
  • 18. 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)
  • 19. 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