SlideShare a Scribd company logo
1 of 18
CHAPTER-ONE
Introduction to Python Programing
By: Mikiale T.
1
Python Overview
2
3
History of Python
 Python was conceptualized by Guido Van Rossum in the late
1980s.
 Rossum published the first version of Python code (0.9.0) in
February 1991 at the CWI (Centrum Wiskunde & Informatica) in
the Netherlands , Amsterdam.
 Python is derived from ABC programming language, which is a
general-purpose programming language that had been developed at
the CWI.
 Rossum chose the name "Python", since he was a big fan of
Monty Python's Flying Circus.
 Python is now maintained by a core development team at the
institute, although Rossum still holds a vital role in directing its
progress.
4
What is Scripting Language?
 A scripting language is a “wrapper” language that integrates OS functions.
 The interpreter is a layer of software logic between your code and the computer hardware on
your machine.
Wiki Says:
 The “program” has an executable form that the computer can use directly to execute the
instructions.
 The same program in its human-readable source code form, from which executable
programs are derived (e.g., compiled)
 Python is scripting language, fast and dynamic.
 Python iscalled‘scripting language’becauseof it’s scalableinterpreter, but actuallyit ismuchmore
than that
5
What is Python?
Python is a high-level programming language which is:
 Interpreted: Python is processed at runtime by the interpreter.
 Interactive: You can use a Python prompt and interact with the interpreter
directly to write your programs.
 Object-Oriented: Python supports Object-Oriented technique of programming.
 Beginner’s Language: Python is a great language for the beginner-level
programmers and supports the development of a wide range of applications.
6
Interpreters Vs Compilers
 Thefirst thing that isimportant to understandaboutPythonisthat it is aninterpretedlanguage.
 Interpreted (i.e. non-compiled), high-level programming language
o Compiler translates to source code to machine code before executing script
o Interpreter executes source code directly without prior compilation
 Thereare two sorts of programming languages:interpreted onesand compiled ones.Acompiled
languageiswhat youareprobablyusedto if youhavedoneanyprogramming inthe past.
 The biggest difference between interpreted code and compiled code is that an interpreted application
neednot be“complete.”
 Youcan test it in bits and pieces until you are satisfied with the results and put them all together later
for the enduserto use.
7
Python Features
 Easy to learn, easy to read and easy to maintain.
 Portable: It can run on various hardware platforms and has the same interface
on all platforms.
 Extendable: You can add low-level modules to the Python interpreter.
 Scalable: Python provides a good structure and support for large programs.
 Python has support for an interactive mode of testing and debugging.
 Python has a broad standard library cross-platform.
 Everything in Python is an object: variables, functions, even code.
 Every object has an ID, a type, and a value.
8
More Features ...
 Python provides interfaces to all major commercial databases.
 Python supports functional and structured programming methods as
well as OOP.
 Python provides very high-level dynamic data types and supports
dynamic type checking.
 Python supports GUI applications
 Python supports automatic garbage collection.
 Python can be easily integrated with C, C++, and Java.
9
Why Python
Easyto read  Python scriptshave clear syntax, simple structure and very few protocols to
remember before programming.
Easyto Maintain  Python code is easily to write and debug. Python's successis that its source code is fairly
easy-to-maintain.
Portable  Python can run on awide variety of Operating systems and platforms and providing the
similar interface on allplatforms.
BroadStandardLibraries  Python comes with many prebuilt libraries apx.21K
High Levelprogramming  Python is intended to make complex programming simpler. Python deals with memory
addresses, garbage collection etcinternally.
Interactive  Python provide an interactive shell to test the things before implementation. It provide
the user the direct interface with Python.
Database Interfaces  Python provides interfaces to all major commercial databases.Theseinterfaces are
pretty easy touse.
GUI programming  Python supportsGUI applications and has framework for Web. Interface to tkinter,
WXPython, DJangoin Python makeit .
10
Python Versions
Release dates for the major and minor versions:
Python 1.0 - January 1994
 Python 1.5 - December 31, 1997
 Python 1.6 - September 5, 2000
Python 2.0 - October 16, 2000
 Python 2.1 - April 17, 2001
 Python 2.2 - December 21, 2001
 Python 2.3 - July 29, 2003
 Python 2.4 - November 30, 2004
 Python 2.5 - September 19, 2006
 Python 2.6 - October 1, 2008
 Python 2.7 - July 3, 2010
11
Python Versions
Release dates for the major and minor versions:
Python 3.0 - December 3, 2008
 Python 3.1 - June 27, 2009
 Python 3.2 - February 20, 2011
 Python 3.3 - September 29, 2012
 Python 3.4 - March 16, 2014
 Python 3.5 - September 13, 2015
12
By RipalRanpara
Python time line
13
Key Changes in Python 3.0
 Python 2's print statement has been replaced by the print() function
 There is only one integer type left, int.
 Some methods such as map() and filter( ) return iterator objects in Python 3
instead of lists in Python 2.
 In Python 3, a TypeError is raised as warning if we try to compare unorderable
types. e.g. 1 < ’ ', 0 > None are no longer valid
 Python 3 provides Unicode (utf-8) strings while Python 2 has ASCII str( ) and
separate unicode( ).
 A new built-in string formatting method format()replaces the% string
formatting operator.

Old: New:
14
Key Changes in Python 3.0
 In Python 3, we should enclose the exception argument in
parentheses.
 In Python 3, we have to use the as keyword now in the handling of
exceptions.
 The division of two integers returns a float instead of an integer. "//"
can be used to have the "old" behavior.
Old:
Old: New:
New:
15
Python Useful Tools
 Python IDEs
 PyCharm
 Vim
 Eclipse with PyDev
 Sublime Text
 Emacs
 Komodo Edit
16
Python Useful Tools
 Python Web Frameworks
 Django
 Flask
 Pylons
 Pyramid
 TurboGears
 Web2py
17
Organizations Use Python
 Web Development :Google, Yahoo
 Games :Battlefield 2, Crystal Space
 Graphics :Walt Disney Feature Animation, Blender 3D
 Science :National Weather Service, NASA, Applied Maths
 Software Development :Nokia, Red Hat, IBM
 Education :University of California-Irvine, SchoolTool
 Government :The USA Central Intelligence Agency (CIA)
18

More Related Content

Similar to Chapter - 1.pptx

PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptxMaheShiva
 
Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computersharanyarashmir5
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfVaibhavKumarSinghkal
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Languageanaveenkumar4
 
What is Python.pptx
What is Python.pptxWhat is Python.pptx
What is Python.pptxMalluKomar
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxManohar k
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners Sujith Kumar
 
Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PuneEthan's Tech
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxcigogag569
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONRuchiNagar3
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Niraj Bharambe
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notesBhavsingh Maloth
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptxSamyakJain461
 

Similar to Chapter - 1.pptx (20)

Cmpe202 01 Research
Cmpe202 01 ResearchCmpe202 01 Research
Cmpe202 01 Research
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
PYTHON FEATURES.pptx
PYTHON FEATURES.pptxPYTHON FEATURES.pptx
PYTHON FEATURES.pptx
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computer
 
Introduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdfIntroduction to Python Unit -1 Part .pdf
Introduction to Python Unit -1 Part .pdf
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
What is Python.pptx
What is Python.pptxWhat is Python.pptx
What is Python.pptx
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
Python Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech PunePython Training in Pune - Ethans Tech Pune
Python Training in Pune - Ethans Tech Pune
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notes
 
python.docx
python.docxpython.docx
python.docx
 
Introduction to Python.pptx
Introduction to Python.pptxIntroduction to Python.pptx
Introduction to Python.pptx
 
01 python introduction
01 python introduction 01 python introduction
01 python introduction
 
Python unit1
Python unit1Python unit1
Python unit1
 

More from MikialeTesfamariam (11)

traditional cliphers 7-11-12.ppt
traditional cliphers 7-11-12.ppttraditional cliphers 7-11-12.ppt
traditional cliphers 7-11-12.ppt
 
6 KBS_ES.ppt
6 KBS_ES.ppt6 KBS_ES.ppt
6 KBS_ES.ppt
 
Chapter - 4.pptx
Chapter - 4.pptxChapter - 4.pptx
Chapter - 4.pptx
 
Chapter - 6.pptx
Chapter - 6.pptxChapter - 6.pptx
Chapter - 6.pptx
 
Chapter - 5.pptx
Chapter - 5.pptxChapter - 5.pptx
Chapter - 5.pptx
 
Chapter - 2.pptx
Chapter - 2.pptxChapter - 2.pptx
Chapter - 2.pptx
 
Chapter - 3.pptx
Chapter - 3.pptxChapter - 3.pptx
Chapter - 3.pptx
 
Chapter -7.pptx
Chapter -7.pptxChapter -7.pptx
Chapter -7.pptx
 
Python_Functions.pdf
Python_Functions.pdfPython_Functions.pdf
Python_Functions.pdf
 
functions-.pdf
functions-.pdffunctions-.pdf
functions-.pdf
 
functions- best.pdf
functions- best.pdffunctions- best.pdf
functions- best.pdf
 

Recently uploaded

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDThiyagu K
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfJayanti Pande
 

Recently uploaded (20)

Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Measures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SDMeasures of Dispersion and Variability: Range, QD, AD and SD
Measures of Dispersion and Variability: Range, QD, AD and SD
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Web & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdfWeb & Social Media Analytics Previous Year Question Paper.pdf
Web & Social Media Analytics Previous Year Question Paper.pdf
 

Chapter - 1.pptx

  • 1. CHAPTER-ONE Introduction to Python Programing By: Mikiale T. 1
  • 3. 3
  • 4. History of Python  Python was conceptualized by Guido Van Rossum in the late 1980s.  Rossum published the first version of Python code (0.9.0) in February 1991 at the CWI (Centrum Wiskunde & Informatica) in the Netherlands , Amsterdam.  Python is derived from ABC programming language, which is a general-purpose programming language that had been developed at the CWI.  Rossum chose the name "Python", since he was a big fan of Monty Python's Flying Circus.  Python is now maintained by a core development team at the institute, although Rossum still holds a vital role in directing its progress. 4
  • 5. What is Scripting Language?  A scripting language is a “wrapper” language that integrates OS functions.  The interpreter is a layer of software logic between your code and the computer hardware on your machine. Wiki Says:  The “program” has an executable form that the computer can use directly to execute the instructions.  The same program in its human-readable source code form, from which executable programs are derived (e.g., compiled)  Python is scripting language, fast and dynamic.  Python iscalled‘scripting language’becauseof it’s scalableinterpreter, but actuallyit ismuchmore than that 5
  • 6. What is Python? Python is a high-level programming language which is:  Interpreted: Python is processed at runtime by the interpreter.  Interactive: You can use a Python prompt and interact with the interpreter directly to write your programs.  Object-Oriented: Python supports Object-Oriented technique of programming.  Beginner’s Language: Python is a great language for the beginner-level programmers and supports the development of a wide range of applications. 6
  • 7. Interpreters Vs Compilers  Thefirst thing that isimportant to understandaboutPythonisthat it is aninterpretedlanguage.  Interpreted (i.e. non-compiled), high-level programming language o Compiler translates to source code to machine code before executing script o Interpreter executes source code directly without prior compilation  Thereare two sorts of programming languages:interpreted onesand compiled ones.Acompiled languageiswhat youareprobablyusedto if youhavedoneanyprogramming inthe past.  The biggest difference between interpreted code and compiled code is that an interpreted application neednot be“complete.”  Youcan test it in bits and pieces until you are satisfied with the results and put them all together later for the enduserto use. 7
  • 8. Python Features  Easy to learn, easy to read and easy to maintain.  Portable: It can run on various hardware platforms and has the same interface on all platforms.  Extendable: You can add low-level modules to the Python interpreter.  Scalable: Python provides a good structure and support for large programs.  Python has support for an interactive mode of testing and debugging.  Python has a broad standard library cross-platform.  Everything in Python is an object: variables, functions, even code.  Every object has an ID, a type, and a value. 8
  • 9. More Features ...  Python provides interfaces to all major commercial databases.  Python supports functional and structured programming methods as well as OOP.  Python provides very high-level dynamic data types and supports dynamic type checking.  Python supports GUI applications  Python supports automatic garbage collection.  Python can be easily integrated with C, C++, and Java. 9
  • 10. Why Python Easyto read  Python scriptshave clear syntax, simple structure and very few protocols to remember before programming. Easyto Maintain  Python code is easily to write and debug. Python's successis that its source code is fairly easy-to-maintain. Portable  Python can run on awide variety of Operating systems and platforms and providing the similar interface on allplatforms. BroadStandardLibraries  Python comes with many prebuilt libraries apx.21K High Levelprogramming  Python is intended to make complex programming simpler. Python deals with memory addresses, garbage collection etcinternally. Interactive  Python provide an interactive shell to test the things before implementation. It provide the user the direct interface with Python. Database Interfaces  Python provides interfaces to all major commercial databases.Theseinterfaces are pretty easy touse. GUI programming  Python supportsGUI applications and has framework for Web. Interface to tkinter, WXPython, DJangoin Python makeit . 10
  • 11. Python Versions Release dates for the major and minor versions: Python 1.0 - January 1994  Python 1.5 - December 31, 1997  Python 1.6 - September 5, 2000 Python 2.0 - October 16, 2000  Python 2.1 - April 17, 2001  Python 2.2 - December 21, 2001  Python 2.3 - July 29, 2003  Python 2.4 - November 30, 2004  Python 2.5 - September 19, 2006  Python 2.6 - October 1, 2008  Python 2.7 - July 3, 2010 11
  • 12. Python Versions Release dates for the major and minor versions: Python 3.0 - December 3, 2008  Python 3.1 - June 27, 2009  Python 3.2 - February 20, 2011  Python 3.3 - September 29, 2012  Python 3.4 - March 16, 2014  Python 3.5 - September 13, 2015 12
  • 14. Key Changes in Python 3.0  Python 2's print statement has been replaced by the print() function  There is only one integer type left, int.  Some methods such as map() and filter( ) return iterator objects in Python 3 instead of lists in Python 2.  In Python 3, a TypeError is raised as warning if we try to compare unorderable types. e.g. 1 < ’ ', 0 > None are no longer valid  Python 3 provides Unicode (utf-8) strings while Python 2 has ASCII str( ) and separate unicode( ).  A new built-in string formatting method format()replaces the% string formatting operator.  Old: New: 14
  • 15. Key Changes in Python 3.0  In Python 3, we should enclose the exception argument in parentheses.  In Python 3, we have to use the as keyword now in the handling of exceptions.  The division of two integers returns a float instead of an integer. "//" can be used to have the "old" behavior. Old: Old: New: New: 15
  • 16. Python Useful Tools  Python IDEs  PyCharm  Vim  Eclipse with PyDev  Sublime Text  Emacs  Komodo Edit 16
  • 17. Python Useful Tools  Python Web Frameworks  Django  Flask  Pylons  Pyramid  TurboGears  Web2py 17
  • 18. Organizations Use Python  Web Development :Google, Yahoo  Games :Battlefield 2, Crystal Space  Graphics :Walt Disney Feature Animation, Blender 3D  Science :National Weather Service, NASA, Applied Maths  Software Development :Nokia, Red Hat, IBM  Education :University of California-Irvine, SchoolTool  Government :The USA Central Intelligence Agency (CIA) 18