SlideShare a Scribd company logo
2
Most read
3
Most read
9
Most read
Introdaction to Python
Dr. Mohammed Kassim Page 1
Introduction to Python
INTRODUCTION TO
OBJECT ORIENTED PROGRAMMING
BY PYTHON
TEACHER
DR. MOHAMMED KASSIM
2016
Introdaction to Python
Dr. Mohammed Kassim Page 2
Introduction to Python
What is Python?
Python is a high-level language programming, interpreted, interactive and object-
oriented scripting language. Python is designed to be highly readable. It uses
English keywords frequently where as other languages use punctuation, and it has
fewer syntactical constructions than other languages. Python is named after a TV
Show called ‘Monty Python’s Flying Circus’ and not after Python-the snake.
 Python is Interpreted: Python is processed at runtime by the interpreter.
You do not need to compile your program before executing it. This is
similar to PERL and PHP.
 An interpreter is a program that reads in as input a source program,
along with data for the program, and translates the source program
instruction by instruction. For example, the Java interpreter java
Figure 1.1. High and Low Level Language
Introdaction to Python
Dr. Mohammed Kassim Page 3
Introduction to Python
translate a .class file into code that can be executed natively on the
underlying machine.
 A compiler is a special program that processes statements written in a
particular programming language and turns them into machine language
or "code" that a computer's processor uses. Typically, a programmer
writes language statements in a language such as Pascal or C one line at
a time using an editor .
 Python is Interactive: You can actually sit at a Python prompt and interact
with the interpreter directly to write your programs.
 Python is Object-Oriented: Python supports Object-Oriented style or
technique of programming that encapsulates code within objects.
Figure 2.1. Interpreter and Compiler
Introdaction to Python
Dr. Mohammed Kassim Page 4
Introduction to Python
 Object-oriented programming (OOP) is a programming language
model organized around objects rather than "actions" and data rather
than logic. Historically, a program has been viewed as a logical
procedure that takes input data, processes it, and produces output data.
The object-oriented programming capabilities of the MATLAB®
language enable you to develop complex technical computing
applications faster than with other languages, such as C++, C#,
Python, PHP and Java.
History of Python
Python was developed by Guido van Rossum in the late eighties and
early nineties at the National Research Institute for Mathematics and
Computer Science in the Netherlands.
Python is derived from many other languages, including ABC, Modula-3, C, C++,
Algol-68, SmallTalk, and Unix shell and other scripting languages.
Figure 3.1. OOP features
Introdaction to Python
Dr. Mohammed Kassim Page 5
Introduction to Python
Python is copyrighted. Like Perl, Python source code is now available under the
GNU General Public License (GPL).
Python is now maintained by a core development team at the institute, although
Guido van Rossum still holds a vital role in directing its progress.
Python 1.0 was released in November 1994. In 2000, Python 2.0 was released.
Python 2.7.11 is the latest edition of Python 2.
Meanwhile, Python 3.0 was released in 2008. Python 3 is not backward
compatible with Python 2. The emphasis in Python 3 had been on the removal of
duplicate programming constructs and modules so that "There should be one --
and preferably only one -- obvious way to do it." Python 3.5.1 is the latest version
of Python 3
Python's features include:
 Easy-to-learn: Python has few keywords, simple structure, and a clearly
defined syntax. This allows the student to pick up the language quickly.
 Easy-to-read: Python code is more clearly defined and visible to the eyes.
 Easy-to-maintain: Python's source code is fairly easy-to-maintain.
 A broad standard library: Python's bulk of the library is very portable and
cross-platform compatible on UNIX, Windows, and Macintosh.
 Interactive Mode: Python has support for an interactive mode which
allows interactive testing and debugging of snippets of code.
 Portable: Python can run on a wide variety of hardware platforms and has
the same interface on all platforms.
Introdaction to Python
Dr. Mohammed Kassim Page 6
Introduction to Python
 Extendable: You can add low-level modules to the Python interpreter.
These modules enable programmers to add to or customize their tools to be
more efficient.
 Databases: Python provides interfaces to all major commercial databases.
 GUI Programming: Python supports GUI applications that can be created
and ported to many system calls, libraries and windows systems, such as
Windows MFC, Macintosh, and the X Window system of Unix.
 Scalable: Python provides a better structure and support for large programs
than shell scripting.
Implementations of Python
 CPython
 Main reference implementation
 With large libraries written in C & Python
 Support by almost every OS
o Windows
o Linux
o Mac OS X
o Apple iOS
o Android
Introdaction to Python
Dr. Mohammed Kassim Page 7
Introduction to Python
 PyPy
o Alternate general implementation
o Better memory usage
o Compatible with popular libraries
 Jython
o Written in Java and Can use Java class and modules
o Include most of the python standard library
o Brings Java to Python
 IronPython
o written entirely in C#
o Employ .NET framework
o First Developed by Microsoft
o Brings .NET classes into Python
 Cython
o Can use C/C++ modules & function inside python
o written in Python
o Brings C/C++ into Python.
Introdaction to Python
Dr. Mohammed Kassim Page 8
Introduction to Python
Organizational Use Python
 In Google
o YouTube
o Gmail (+java)
o Google Groups
o Google Maps
o Parts of Search Engine
 In Yahoo
o Yahoo Groups
o Yahoo Maps
 In NASA
o Speed up Coding Process
o Make Designing Workflow Easier
Applications by Python
• Bioinformatics
o AstraZeneca (Drug Discovery)
• GIS and Mapping
o The Blind Audio Tactile mapping System
• Simulation
o Carmanah Lights the Way
Introdaction to Python
Dr. Mohammed Kassim Page 9
Introduction to Python
 Games
o Civilization IV
o Battlefield
 Networks and communication
o Bit Torrent
o D-Link Australia
o Mozilla Website
o Dropbox
Popular Coding Languages
Figure 4.1. Popular Coding Languages

More Related Content

What's hot (20)

PPTX
introduction to Python (for beginners)
guobichrng
 
PDF
introduction of python in data science
bhavesh lande
 
PPTX
Basics of python
SurjeetSinghSurjeetS
 
PPTX
Python
onlinetraining3
 
PPTX
Python programming
Megha V
 
PPTX
Introduction python
Jumbo Techno e_Learning
 
PPTX
Python
GAnkitgupta
 
PDF
Introduction to Python
MuhammadBakri13
 
PPTX
Introduction to python
AnirudhaGaikwad4
 
PDF
Python quick guide1
Kanchilug
 
PDF
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
PDF
Python tutorial
kshitij chaurasiya
 
DOCX
Seminar report on python 3 course
HimanshuPanwar38
 
PPTX
Python tutorial for beginners - Tib academy
TIB Academy
 
PDF
Introduction to python programming
Kiran Vadakkath
 
PPTX
Python - An Introduction
Swarit Wadhe
 
PDF
Introduction to python
Agung Wahyudi
 
PPT
Cmpe202 01 Research
vladimirkorshak
 
PPTX
11 Unit1 Chapter 1 Getting Started With Python
Praveen M Jigajinni
 
introduction to Python (for beginners)
guobichrng
 
introduction of python in data science
bhavesh lande
 
Basics of python
SurjeetSinghSurjeetS
 
Python programming
Megha V
 
Introduction python
Jumbo Techno e_Learning
 
Python
GAnkitgupta
 
Introduction to Python
MuhammadBakri13
 
Introduction to python
AnirudhaGaikwad4
 
Python quick guide1
Kanchilug
 
Learn Python Programming | Python Programming - Step by Step | Python for Beg...
Edureka!
 
Python tutorial
kshitij chaurasiya
 
Seminar report on python 3 course
HimanshuPanwar38
 
Python tutorial for beginners - Tib academy
TIB Academy
 
Introduction to python programming
Kiran Vadakkath
 
Python - An Introduction
Swarit Wadhe
 
Introduction to python
Agung Wahyudi
 
Cmpe202 01 Research
vladimirkorshak
 
11 Unit1 Chapter 1 Getting Started With Python
Praveen M Jigajinni
 

Similar to Introduction to Python (20)

PPTX
Chapter - 1.pptx
MikialeTesfamariam
 
PDF
summer t.pdf
RITVIKKAPOOR10
 
PPT
1-ppt-python.ppt
ssusera99a83
 
PPTX
introduction to python in computer graphics.pptx
urvashipundir04
 
PPT
Python for students step by step guidance
MantoshKumar79
 
PPTX
Introduction to python
Nikhil Kapoor
 
PPTX
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
PPTX
Lecture 1.pptx
hemantmohite6
 
PPTX
Chapter 2: Basics of programming pyton programming
biniyamtiktok
 
PPTX
POWER OF PYTHON PROGRAMMING LANGUAGE
teachersduniya.com
 
PPTX
Introduction to Python Programming - I
Arnab Chakraborty
 
PPTX
Python presentation by Monu Sharma
Mayank Sharma
 
PDF
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
PPTX
What is python
faizrashid1995
 
PDF
Introduction-To-Python- a guide to master
ImadM4
 
PPTX
Introduction of python programming
Nitin Kumar Kashyap
 
PPT
Python Introduction.ppt
RupaBhattacharya6
 
PPTX
Python.pptx
abclara
 
PPTX
python programming unit 1 wala ppt .pptx
AnaIyer1
 
PDF
Module 1 Review of Python Basics An Introduction
percivalfernandez2
 
Chapter - 1.pptx
MikialeTesfamariam
 
summer t.pdf
RITVIKKAPOOR10
 
1-ppt-python.ppt
ssusera99a83
 
introduction to python in computer graphics.pptx
urvashipundir04
 
Python for students step by step guidance
MantoshKumar79
 
Introduction to python
Nikhil Kapoor
 
Basic Python Introduction Lecture 1.pptx
Aditya Patel
 
Lecture 1.pptx
hemantmohite6
 
Chapter 2: Basics of programming pyton programming
biniyamtiktok
 
POWER OF PYTHON PROGRAMMING LANGUAGE
teachersduniya.com
 
Introduction to Python Programming - I
Arnab Chakraborty
 
Python presentation by Monu Sharma
Mayank Sharma
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
What is python
faizrashid1995
 
Introduction-To-Python- a guide to master
ImadM4
 
Introduction of python programming
Nitin Kumar Kashyap
 
Python Introduction.ppt
RupaBhattacharya6
 
Python.pptx
abclara
 
python programming unit 1 wala ppt .pptx
AnaIyer1
 
Module 1 Review of Python Basics An Introduction
percivalfernandez2
 
Ad

More from DrMohammed Qassim (20)

PDF
Repatino code - hamming code (7,4) - chapter four
DrMohammed Qassim
 
PDF
Shannon code & shannon fano & huffman method - chapter three
DrMohammed Qassim
 
PDF
ٍSource Entropy - binary symmetric channe - chapter one - two
DrMohammed Qassim
 
PDF
(Win7) مقدمة في نظام التشغيل
DrMohammed Qassim
 
PDF
مقدمة في برمجة و تصميم الشبكات
DrMohammed Qassim
 
PDF
مقدمة حول الشبكات
DrMohammed Qassim
 
PDF
منهاج تحليل و تصميم نظم المعلومات
DrMohammed Qassim
 
PDF
منهاج بناء و تصميم مواقع الانترنيت
DrMohammed Qassim
 
PDF
مقدمة في قواعد البيانات
DrMohammed Qassim
 
PDF
System analysis part2
DrMohammed Qassim
 
PDF
Example for ER diagram part11
DrMohammed Qassim
 
PDF
Primary Key & Foreign Key part10
DrMohammed Qassim
 
PDF
Entity Relationship Diagram part9
DrMohammed Qassim
 
PDF
Activity Diagram part8
DrMohammed Qassim
 
PDF
Data flow diagram part7
DrMohammed Qassim
 
PDF
Data Flow Models part6
DrMohammed Qassim
 
PDF
Use Case Context Diagram part5
DrMohammed Qassim
 
PDF
Use Case Diagrams part4
DrMohammed Qassim
 
PDF
System Development Life Cycle part3
DrMohammed Qassim
 
PDF
Introduction to System analysis part1
DrMohammed Qassim
 
Repatino code - hamming code (7,4) - chapter four
DrMohammed Qassim
 
Shannon code & shannon fano & huffman method - chapter three
DrMohammed Qassim
 
ٍSource Entropy - binary symmetric channe - chapter one - two
DrMohammed Qassim
 
(Win7) مقدمة في نظام التشغيل
DrMohammed Qassim
 
مقدمة في برمجة و تصميم الشبكات
DrMohammed Qassim
 
مقدمة حول الشبكات
DrMohammed Qassim
 
منهاج تحليل و تصميم نظم المعلومات
DrMohammed Qassim
 
منهاج بناء و تصميم مواقع الانترنيت
DrMohammed Qassim
 
مقدمة في قواعد البيانات
DrMohammed Qassim
 
System analysis part2
DrMohammed Qassim
 
Example for ER diagram part11
DrMohammed Qassim
 
Primary Key & Foreign Key part10
DrMohammed Qassim
 
Entity Relationship Diagram part9
DrMohammed Qassim
 
Activity Diagram part8
DrMohammed Qassim
 
Data flow diagram part7
DrMohammed Qassim
 
Data Flow Models part6
DrMohammed Qassim
 
Use Case Context Diagram part5
DrMohammed Qassim
 
Use Case Diagrams part4
DrMohammed Qassim
 
System Development Life Cycle part3
DrMohammed Qassim
 
Introduction to System analysis part1
DrMohammed Qassim
 
Ad

Recently uploaded (20)

PDF
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
PPTX
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
PDF
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
PDF
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
PDF
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
PPTX
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
PDF
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
PPTX
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
PDF
Biography of Daniel Podor.pdf
Daniel Podor
 
PDF
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
PDF
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
PDF
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
PDF
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
PDF
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
PDF
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
PDF
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
PDF
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
PDF
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
PDF
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
PDF
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 
"AI Transformation: Directions and Challenges", Pavlo Shaternik
Fwdays
 
"Autonomy of LLM Agents: Current State and Future Prospects", Oles` Petriv
Fwdays
 
"Beyond English: Navigating the Challenges of Building a Ukrainian-language R...
Fwdays
 
Agentic AI lifecycle for Enterprise Hyper-Automation
Debmalya Biswas
 
How Startups Are Growing Faster with App Developers in Australia.pdf
India App Developer
 
Building Search Using OpenSearch: Limitations and Workarounds
Sease
 
Transcript: New from BookNet Canada for 2025: BNC BiblioShare - Tech Forum 2025
BookNet Canada
 
COMPARISON OF RASTER ANALYSIS TOOLS OF QGIS AND ARCGIS
Sharanya Sarkar
 
Biography of Daniel Podor.pdf
Daniel Podor
 
Newgen Beyond Frankenstein_Build vs Buy_Digital_version.pdf
darshakparmar
 
Empower Inclusion Through Accessible Java Applications
Ana-Maria Mihalceanu
 
LOOPS in C Programming Language - Technology
RishabhDwivedi43
 
CIFDAQ Market Wrap for the week of 4th July 2025
CIFDAQ
 
Building Real-Time Digital Twins with IBM Maximo & ArcGIS Indoors
Safe Software
 
Transforming Utility Networks: Large-scale Data Migrations with FME
Safe Software
 
CIFDAQ Token Spotlight for 9th July 2025
CIFDAQ
 
CIFDAQ Market Insights for July 7th 2025
CIFDAQ
 
DevBcn - Building 10x Organizations Using Modern Productivity Metrics
Justin Reock
 
Exolore The Essential AI Tools in 2025.pdf
Srinivasan M
 
Reverse Engineering of Security Products: Developing an Advanced Microsoft De...
nwbxhhcyjv
 

Introduction to Python

  • 1. Introdaction to Python Dr. Mohammed Kassim Page 1 Introduction to Python INTRODUCTION TO OBJECT ORIENTED PROGRAMMING BY PYTHON TEACHER DR. MOHAMMED KASSIM 2016
  • 2. Introdaction to Python Dr. Mohammed Kassim Page 2 Introduction to Python What is Python? Python is a high-level language programming, interpreted, interactive and object- oriented scripting language. Python is designed to be highly readable. It uses English keywords frequently where as other languages use punctuation, and it has fewer syntactical constructions than other languages. Python is named after a TV Show called ‘Monty Python’s Flying Circus’ and not after Python-the snake.  Python is Interpreted: Python is processed at runtime by the interpreter. You do not need to compile your program before executing it. This is similar to PERL and PHP.  An interpreter is a program that reads in as input a source program, along with data for the program, and translates the source program instruction by instruction. For example, the Java interpreter java Figure 1.1. High and Low Level Language
  • 3. Introdaction to Python Dr. Mohammed Kassim Page 3 Introduction to Python translate a .class file into code that can be executed natively on the underlying machine.  A compiler is a special program that processes statements written in a particular programming language and turns them into machine language or "code" that a computer's processor uses. Typically, a programmer writes language statements in a language such as Pascal or C one line at a time using an editor .  Python is Interactive: You can actually sit at a Python prompt and interact with the interpreter directly to write your programs.  Python is Object-Oriented: Python supports Object-Oriented style or technique of programming that encapsulates code within objects. Figure 2.1. Interpreter and Compiler
  • 4. Introdaction to Python Dr. Mohammed Kassim Page 4 Introduction to Python  Object-oriented programming (OOP) is a programming language model organized around objects rather than "actions" and data rather than logic. Historically, a program has been viewed as a logical procedure that takes input data, processes it, and produces output data. The object-oriented programming capabilities of the MATLAB® language enable you to develop complex technical computing applications faster than with other languages, such as C++, C#, Python, PHP and Java. History of Python Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research Institute for Mathematics and Computer Science in the Netherlands. Python is derived from many other languages, including ABC, Modula-3, C, C++, Algol-68, SmallTalk, and Unix shell and other scripting languages. Figure 3.1. OOP features
  • 5. Introdaction to Python Dr. Mohammed Kassim Page 5 Introduction to Python Python is copyrighted. Like Perl, Python source code is now available under the GNU General Public License (GPL). Python is now maintained by a core development team at the institute, although Guido van Rossum still holds a vital role in directing its progress. Python 1.0 was released in November 1994. In 2000, Python 2.0 was released. Python 2.7.11 is the latest edition of Python 2. Meanwhile, Python 3.0 was released in 2008. Python 3 is not backward compatible with Python 2. The emphasis in Python 3 had been on the removal of duplicate programming constructs and modules so that "There should be one -- and preferably only one -- obvious way to do it." Python 3.5.1 is the latest version of Python 3 Python's features include:  Easy-to-learn: Python has few keywords, simple structure, and a clearly defined syntax. This allows the student to pick up the language quickly.  Easy-to-read: Python code is more clearly defined and visible to the eyes.  Easy-to-maintain: Python's source code is fairly easy-to-maintain.  A broad standard library: Python's bulk of the library is very portable and cross-platform compatible on UNIX, Windows, and Macintosh.  Interactive Mode: Python has support for an interactive mode which allows interactive testing and debugging of snippets of code.  Portable: Python can run on a wide variety of hardware platforms and has the same interface on all platforms.
  • 6. Introdaction to Python Dr. Mohammed Kassim Page 6 Introduction to Python  Extendable: You can add low-level modules to the Python interpreter. These modules enable programmers to add to or customize their tools to be more efficient.  Databases: Python provides interfaces to all major commercial databases.  GUI Programming: Python supports GUI applications that can be created and ported to many system calls, libraries and windows systems, such as Windows MFC, Macintosh, and the X Window system of Unix.  Scalable: Python provides a better structure and support for large programs than shell scripting. Implementations of Python  CPython  Main reference implementation  With large libraries written in C & Python  Support by almost every OS o Windows o Linux o Mac OS X o Apple iOS o Android
  • 7. Introdaction to Python Dr. Mohammed Kassim Page 7 Introduction to Python  PyPy o Alternate general implementation o Better memory usage o Compatible with popular libraries  Jython o Written in Java and Can use Java class and modules o Include most of the python standard library o Brings Java to Python  IronPython o written entirely in C# o Employ .NET framework o First Developed by Microsoft o Brings .NET classes into Python  Cython o Can use C/C++ modules & function inside python o written in Python o Brings C/C++ into Python.
  • 8. Introdaction to Python Dr. Mohammed Kassim Page 8 Introduction to Python Organizational Use Python  In Google o YouTube o Gmail (+java) o Google Groups o Google Maps o Parts of Search Engine  In Yahoo o Yahoo Groups o Yahoo Maps  In NASA o Speed up Coding Process o Make Designing Workflow Easier Applications by Python • Bioinformatics o AstraZeneca (Drug Discovery) • GIS and Mapping o The Blind Audio Tactile mapping System • Simulation o Carmanah Lights the Way
  • 9. Introdaction to Python Dr. Mohammed Kassim Page 9 Introduction to Python  Games o Civilization IV o Battlefield  Networks and communication o Bit Torrent o D-Link Australia o Mozilla Website o Dropbox Popular Coding Languages Figure 4.1. Popular Coding Languages