SlideShare a Scribd company logo
3
Most read
7
Most read
15
Most read
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 Scripting
 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.
 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
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
administration utilities 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
bridge the gap between C and the shell”
- Guido Van Rossum
Scope of Python
 Science
- Bioinformatics
 System Administration
-Unix
-Web logic
-Web sphere
 Web Application Development
-CGI
-Jython – Servlets
 Testing scripts
Key Features of Python
 Python is a high-level, interpreted programming language known for its simplicity
and readability.
 Simple and Readable: Python's syntax is designed to be easy to understand and
write, making it an excellent choice for beginners and experienced programmers
alike.
 Interpreted Language: Python code is executed line by line, which makes it easy
to test and debug.
 Dynamic Typing: You don’t need to declare data types explicitly; Python
determines the type of variable during runtime.
 Versatile and Portable: Python runs on multiple platforms, including Windows,
macOS, Linux, and more. It can be used for web development, data analysis,
artificial intelligence, automation, and much more.
 Extensive Libraries and Frameworks: Python has a rich ecosystem of libraries
(like NumPy, Pandas, TensorFlow) and frameworks (like Django, Flask) that
simplify development in various domains.
 Python is widely used in web development, data science, machine learning,
automation, scientific computing, and more.
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
EXAMPLE
 if condition:
 # This is inside the if block
 print("Condition is true")
 if nested_condition:
 # This is a nested block inside the if block
 print("Nested condition is also true")
 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 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

More Related Content

PPTX
introduction to python in computer graphics.pptx
PPTX
Introduction to python for Beginners
PPTX
Introduction python
PPTX
Python Tutorial | Python Programming Language
PPTX
Python tutorial for beginners - Tib academy
PPTX
introduction to python in detail including .pptx
PPTX
Python Programming Draft PPT.pptx
PDF
intro.pptx (1).pdf
introduction to python in computer graphics.pptx
Introduction to python for Beginners
Introduction python
Python Tutorial | Python Programming Language
Python tutorial for beginners - Tib academy
introduction to python in detail including .pptx
Python Programming Draft PPT.pptx
intro.pptx (1).pdf

Similar to python programminig and introduction.pptx (20)

PPTX
Phython Programming Language
PDF
session5-Getting stated with Python.pdf
PPTX
Python basic
PPTX
Python_Introduction_Good_PPT.pptx
PPTX
Presentation on python
PPTX
python unit2.pptx
PDF
Research paper on python by Rj
PPTX
Lecture 1.pptx
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...
PPTX
Python is a high-level, interpreted programming language that emphasizes read...
PDF
Python quick guide1
PPTX
introduction to Python (for beginners)
PPTX
Introduction to the Python
PPTX
Introduction-to-Python-Programming1.pptx
PPTX
Basic Python Introduction Lecture 1.pptx
PPTX
DSA Presentation.pptx pptttttttttttttttt
PPTX
INTRODUCTION-TO-PYTHON
PPTX
POWER OF PYTHON PROGRAMMING LANGUAGE
PPTX
Introduction to python
Phython Programming Language
session5-Getting stated with Python.pdf
Python basic
Python_Introduction_Good_PPT.pptx
Presentation on python
python unit2.pptx
Research paper on python by Rj
Lecture 1.pptx
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 that emphasizes read...
Python quick guide1
introduction to Python (for beginners)
Introduction to the Python
Introduction-to-Python-Programming1.pptx
Basic Python Introduction Lecture 1.pptx
DSA Presentation.pptx pptttttttttttttttt
INTRODUCTION-TO-PYTHON
POWER OF PYTHON PROGRAMMING LANGUAGE
Introduction to python
Ad

More from urvashipundir04 (20)

PPTX
kewords in python using 35 keywords.pptx
PPTX
stack in python using different datatypes.pptx
PPTX
Game Playing in Artificial intelligence.pptx
PPTX
extended modelling in dbms using different.pptx
PPTX
PRODUCTION SYSTEM in data science .pptx
PPTX
Presentation1 in datamining using techn.pptx
PPTX
Dependency modelling in data mining.pptx
PPTX
INTRODUCTION to datawarehouse IN DATA.pptx
PPTX
SOCIAL NETWORK ANALYISI in engeenireg.pptx
PPTX
datamining in engerring using different techniques.pptx
PPTX
datamining IN Artificial intelligence.pptx
PPTX
Underfitting and Overfitting in Machine Learning.pptx
PPTX
introduction values and best practices in
PPTX
ppt on different topics of circular.pptx
PPTX
list in python and traversal of list.pptx
PPT
ermodelN in database management system.ppt
PPTX
libraries in python using different .pptx
PPTX
tuple in python is an impotant topic.pptx
PPTX
ANIMATION in computer graphics using 3 D.pptx
PPTX
dispaly subroutines in computer graphics .pptx
kewords in python using 35 keywords.pptx
stack in python using different datatypes.pptx
Game Playing in Artificial intelligence.pptx
extended modelling in dbms using different.pptx
PRODUCTION SYSTEM in data science .pptx
Presentation1 in datamining using techn.pptx
Dependency modelling in data mining.pptx
INTRODUCTION to datawarehouse IN DATA.pptx
SOCIAL NETWORK ANALYISI in engeenireg.pptx
datamining in engerring using different techniques.pptx
datamining IN Artificial intelligence.pptx
Underfitting and Overfitting in Machine Learning.pptx
introduction values and best practices in
ppt on different topics of circular.pptx
list in python and traversal of list.pptx
ermodelN in database management system.ppt
libraries in python using different .pptx
tuple in python is an impotant topic.pptx
ANIMATION in computer graphics using 3 D.pptx
dispaly subroutines in computer graphics .pptx
Ad

Recently uploaded (20)

PPTX
CYBER-CRIMES AND SECURITY A guide to understanding
PPTX
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
PPTX
Lecture Notes Electrical Wiring System Components
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PDF
Digital Logic Computer Design lecture notes
PDF
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
PPTX
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
PPTX
Lesson 3_Tessellation.pptx finite Mathematics
PPTX
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
PPT
Mechanical Engineering MATERIALS Selection
PPTX
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
PPTX
additive manufacturing of ss316l using mig welding
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
Strings in CPP - Strings in C++ are sequences of characters used to store and...
PPTX
Geodesy 1.pptx...............................................
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
PDF
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
CYBER-CRIMES AND SECURITY A guide to understanding
Recipes for Real Time Voice AI WebRTC, SLMs and Open Source Software.pptx
Lecture Notes Electrical Wiring System Components
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Digital Logic Computer Design lecture notes
BMEC211 - INTRODUCTION TO MECHATRONICS-1.pdf
IOT PPTs Week 10 Lecture Material.pptx of NPTEL Smart Cities contd
Lesson 3_Tessellation.pptx finite Mathematics
CARTOGRAPHY AND GEOINFORMATION VISUALIZATION chapter1 NPTE (2).pptx
Mechanical Engineering MATERIALS Selection
MCN 401 KTU-2019-PPE KITS-MODULE 2.pptx
additive manufacturing of ss316l using mig welding
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
Strings in CPP - Strings in C++ are sequences of characters used to store and...
Geodesy 1.pptx...............................................
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Mohammad Mahdi Farshadian CV - Prospective PhD Student 2026
The CXO Playbook 2025 – Future-Ready Strategies for C-Suite Leaders Cerebrai...
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx

python programminig and introduction.pptx

  • 1. 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
  • 2. 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
  • 3. Differences between program and scripting language Program Scripting  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.  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.
  • 4. 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
  • 5. 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 administration utilities 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 bridge the gap between C and the shell” - Guido Van Rossum
  • 6. Scope of Python  Science - Bioinformatics  System Administration -Unix -Web logic -Web sphere  Web Application Development -CGI -Jython – Servlets  Testing scripts
  • 7. Key Features of Python  Python is a high-level, interpreted programming language known for its simplicity and readability.  Simple and Readable: Python's syntax is designed to be easy to understand and write, making it an excellent choice for beginners and experienced programmers alike.  Interpreted Language: Python code is executed line by line, which makes it easy to test and debug.  Dynamic Typing: You don’t need to declare data types explicitly; Python determines the type of variable during runtime.  Versatile and Portable: Python runs on multiple platforms, including Windows, macOS, Linux, and more. It can be used for web development, data analysis, artificial intelligence, automation, and much more.  Extensive Libraries and Frameworks: Python has a rich ecosystem of libraries (like NumPy, Pandas, TensorFlow) and frameworks (like Django, Flask) that simplify development in various domains.  Python is widely used in web development, data science, machine learning, automation, scientific computing, and more.
  • 8. 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
  • 9. EXAMPLE  if condition:  # This is inside the if block  print("Condition is true")  if nested_condition:  # This is a nested block inside the if block  print("Nested condition is also true")
  • 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 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
  • 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 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
  • 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