SlideShare a Scribd company logo
Python – For Beginners
By Jainul Musani
[ 1 ]
Introduction to Python
• A Scripting Language
• Founder: Guido Van Rossum
• Year: 1985- 1990
• At: National Research Institute for Mathematics and
Computer Science in the Netherlands
• Python is copyrighted - source code available under the
GNU General Public License (GPL)
Python Features: - 1
• General purpose, simple & Easy to Learn
• Few keywords, simple structure, clear syntax.
• Powerful and Versatile scripting language
• Dynamic, High level and Interpreted programming
language. (.pyc)
• Easy-to-maintain source code
 Supports multiple programming patternObject Oriented,
 Imperative and
 Functional or Procedural programming styles.
Python Features: - 2
• Multipurpose language - used with web, enterprise, 3D
CAD etc.
• Object Oriented programming approach
• Provides lots of high-level data structures.
• Rapid Application Development - Python's syntax
and dynamic typing, interpreted nature.
• No need to use data types for variable declaration -
dynamically typed (i.e. a=10 assign an integer value in
an integer variable).
Python Features: - 3
• Broad, Standard, Cross-Platform and Portable Library
• Interactive Mode − allows interactive testing and
debugging of snippets of code.
• Portable – support a wide variety of hardware
platforms and same interface on all platforms.
• Extendable − you can add low-level modules to the
Python interpreter.
Python Features: - 4
• 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.
Python Version
Python Version Released Date
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
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
Python 3.6 December 23, 2016
Python 3.6.4 December 19, 2017
Python Applications Areas:
1) Web Applications [Frameworks such as Django, Pyramid, Flask etc]
2) Desktop GUI Applications [wxWidgets, Kivy, pyqt ]
3) Software Development
4) Scientific and Numeric[SciPy, Pandas, IPython etc]
5) Business Applications [ERP and e-commerce systems i.e. Tryton]
6) Console Based Application [Ipython]
7) Audio or Video based Applications [TimPlayer, cplay etc]
8) 3D CAD Applications
9) Enterprise Applications [OpenErp, Tryton, Picalo etc]
10) Applications for Images [VPython, Gogh, imgSeek etc]
Installation Python 2.7
To install Python, visit the python official site and download the Python distribution
www.python.org/download
For UBUNTU LINUX:
1) Update the APT Repository
2) Install Python
3) Verify Python
(For Python3 type python3)
Installation Python 2.7
To install Python, visit the python official site and download the Python distribution
www.python.org/download
For Windows operating system: (1)
Installation Python 2.7
To install Python, visit the python official site and download the Python distribution
www.python.org/download
For Windows operating system: (2)
downloading the Python
distribution, double click on
the downloaded software to
execute it. Follow the
following installtion steps.
Installation Python 2.7
To install Python, visit the python official site and download the Python distribution
www.python.org/download
For Windows operating system: (3) – (4)
Installation Python 2.7
To install Python, visit the python official site and download the Python distribution
www.python.org/download
For Windows operating system: (5)
Installation Python 2.7
Setting path for UBUNTU Linux
 To add the Python directory to the path for a particular session in Unix −
 In the csh shell − type setenv PATH "$PATH:/usr/local/bin/python" and press Enter.
 In the bash shell (Linux) − type export ATH="$PATH:/usr/local/bin/python" and press
Enter.
 In the sh or ksh shell − type PATH="$PATH:/usr/local/bin/python" and press Enter.
 Note − /usr/local/bin/python is the path of the Python directory
Installation Python 2.7
Setting path for Windows
1. Right click on My Computer and click on properties.
2. Click on Advanced System settings
3. Click on Environment Variable tab.
4. Click on new tab of user variables.
5. Write path in variable name
6. Copy the path of Python folder
7. Click on Ok button
Test Python Installation by an Example
Interactive Shell to execute code immediately and produce
output instantly…
1) Go to OS command prompt
2) Type ‘python’, you will get python prompt
Test Python Installation by an Example
Test with simple Expressions
Test Python Using Script Mode:
Test with simple Expressions
i) Write python code in any basic
Operating System text editor (i.e.
notepad, wordpad, vi etc.) and save the
file with .py extension.
ii) Open the Command Prompt and type
‘python file1.py’
 Make sure the command you
execute where the file1.py is saved.
Test Python Using IDE:
Click on Start button -> All Programs -> Python -> IDLE(Python GUI)
Test Python Using IDE:
Click on Start button -> All Programs -> Python -> IDLE(Python GUI)
 To create a .py file to write a script : go to menu File > New File >
 Type Python Script and save the file in python directory (i.e. file2.py)
 To Execute the file2.py – Go to Menu Run > Run Module (F5)
Next Python for Beginners
Part – 2 … >>

More Related Content

What's hot (13)

PPTX
IHTM Python PCEP Introduction to Python
IHTMINSTITUTE
 
PPTX
Introduction to-python
Aakashdata
 
PDF
Introduction of python
ShehabAldeenFadelall
 
PPTX
Linux operating system
Mohamed Essam
 
PPTX
Best Python Online Training with Live Project by Expert
QA TrainingHub
 
PDF
Intro to Jupyter Notebooks
Francis Michael Bautista
 
PDF
Python Intro
Tim Penhey
 
PDF
Learning Python with PyCharm EDU
Sergey Aganezov
 
PPTX
Introduction to Python for Security Professionals
Andrew McNicol
 
PDF
Introduction to Python
GLC Networks
 
PPT
Network programming in python..
Bharath Kumar
 
PDF
Linux Kernel Introduction
Sage Sharp
 
PPT
Linux install fest
Altin Ukshini
 
IHTM Python PCEP Introduction to Python
IHTMINSTITUTE
 
Introduction to-python
Aakashdata
 
Introduction of python
ShehabAldeenFadelall
 
Linux operating system
Mohamed Essam
 
Best Python Online Training with Live Project by Expert
QA TrainingHub
 
Intro to Jupyter Notebooks
Francis Michael Bautista
 
Python Intro
Tim Penhey
 
Learning Python with PyCharm EDU
Sergey Aganezov
 
Introduction to Python for Security Professionals
Andrew McNicol
 
Introduction to Python
GLC Networks
 
Network programming in python..
Bharath Kumar
 
Linux Kernel Introduction
Sage Sharp
 
Linux install fest
Altin Ukshini
 

Similar to Python 1 (20)

PDF
Python tutorial
Vijay Chaitanya
 
PPTX
Chapter 2: Basics of programming pyton programming
biniyamtiktok
 
DOCX
Python Notes for mca i year students osmania university.docx
Ramakrishna Reddy Bijjam
 
PDF
Unit 1-Part-1-Introduction to Python.pdf
Harsha Patil
 
PDF
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Niraj Bharambe
 
PDF
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
PDF
Python_slides.pdf
CodeWithSumit
 
PPTX
Welcome_to_Python.pptx
21M220KARTHIKEYANC
 
PPTX
Session-1_Introduction to Python.pptx
WajidAliHashmi2
 
PDF
Introduction to python 3
Youhei Sakurai
 
PPTX
Python Prgramming basics for Beginnerss for User friendly interface
ghskannamangalatinke
 
PDF
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
Sana Khan
 
PPT
Python programming-2-2048 (30 files merged).ppt
pprince22982
 
PPT
Python programming notes all in one python ppt
pprince22982
 
DOCX
Seminar report on python 3 course
HimanshuPanwar38
 
DOCX
Seminar report On Python
Shivam Gupta
 
PPTX
Chapter - 1.pptx
MikialeTesfamariam
 
PDF
Module 1 Review of Python Basics An Introduction
percivalfernandez2
 
PDF
Python lecture 01
Tanwir Zaman
 
PDF
python-handbook.pdf
RaviKumar76265
 
Python tutorial
Vijay Chaitanya
 
Chapter 2: Basics of programming pyton programming
biniyamtiktok
 
Python Notes for mca i year students osmania university.docx
Ramakrishna Reddy Bijjam
 
Unit 1-Part-1-Introduction to Python.pdf
Harsha Patil
 
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Niraj Bharambe
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
YadavHarshKr
 
Python_slides.pdf
CodeWithSumit
 
Welcome_to_Python.pptx
21M220KARTHIKEYANC
 
Session-1_Introduction to Python.pptx
WajidAliHashmi2
 
Introduction to python 3
Youhei Sakurai
 
Python Prgramming basics for Beginnerss for User friendly interface
ghskannamangalatinke
 
REPORT ON AUDIT COURSE PYTHON BY SANA 2.pdf
Sana Khan
 
Python programming-2-2048 (30 files merged).ppt
pprince22982
 
Python programming notes all in one python ppt
pprince22982
 
Seminar report on python 3 course
HimanshuPanwar38
 
Seminar report On Python
Shivam Gupta
 
Chapter - 1.pptx
MikialeTesfamariam
 
Module 1 Review of Python Basics An Introduction
percivalfernandez2
 
Python lecture 01
Tanwir Zaman
 
python-handbook.pdf
RaviKumar76265
 
Ad

More from Jainul Musani (20)

PDF
Core Java Interface Concepts for BCA Studetns
Jainul Musani
 
PDF
Java Abstract and Final Class for BCA students
Jainul Musani
 
PDF
Java Collection Framework for BCA Students
Jainul Musani
 
PDF
Simple Calculator using JavaFx a part of Advance Java
Jainul Musani
 
PDF
JavaFx Introduction, Basic JavaFx Architecture
Jainul Musani
 
PDF
ASP.NET 2010, WebServices Full Example for BCA Students
Jainul Musani
 
PDF
Palindrome Programme in PHP for BCA students
Jainul Musani
 
PDF
Leap Year Program in PHP for BCA students
Jainul Musani
 
PDF
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
PDF
Python: The Versatile Programming Language - Introduction
Jainul Musani
 
PPTX
Python a Versatile Programming Language - Introduction
Jainul Musani
 
PDF
React js t8 - inlinecss
Jainul Musani
 
PDF
React js t7 - forms-events
Jainul Musani
 
PDF
React js t6 -lifecycle
Jainul Musani
 
PDF
React js t5 - state
Jainul Musani
 
PDF
React js t4 - components
Jainul Musani
 
PDF
React js t3 - es6
Jainul Musani
 
PDF
React js t2 - jsx
Jainul Musani
 
PDF
React js t1 - introduction
Jainul Musani
 
PPTX
ExpressJs Session01
Jainul Musani
 
Core Java Interface Concepts for BCA Studetns
Jainul Musani
 
Java Abstract and Final Class for BCA students
Jainul Musani
 
Java Collection Framework for BCA Students
Jainul Musani
 
Simple Calculator using JavaFx a part of Advance Java
Jainul Musani
 
JavaFx Introduction, Basic JavaFx Architecture
Jainul Musani
 
ASP.NET 2010, WebServices Full Example for BCA Students
Jainul Musani
 
Palindrome Programme in PHP for BCA students
Jainul Musani
 
Leap Year Program in PHP for BCA students
Jainul Musani
 
"PHP and MySQL CRUD Operations for Student Management System"
Jainul Musani
 
Python: The Versatile Programming Language - Introduction
Jainul Musani
 
Python a Versatile Programming Language - Introduction
Jainul Musani
 
React js t8 - inlinecss
Jainul Musani
 
React js t7 - forms-events
Jainul Musani
 
React js t6 -lifecycle
Jainul Musani
 
React js t5 - state
Jainul Musani
 
React js t4 - components
Jainul Musani
 
React js t3 - es6
Jainul Musani
 
React js t2 - jsx
Jainul Musani
 
React js t1 - introduction
Jainul Musani
 
ExpressJs Session01
Jainul Musani
 
Ad

Recently uploaded (20)

PDF
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
PPTX
Machine Learning Benefits Across Industries
SynapseIndia
 
PDF
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
PDF
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
PDF
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
PDF
The Past, Present & Future of Kenya's Digital Transformation
Moses Kemibaro
 
PDF
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
PPTX
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PDF
Market Insight : ETH Dominance Returns
CIFDAQ
 
PDF
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
PDF
SalesForce Managed Services Benefits (1).pdf
TechForce Services
 
PDF
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
PPTX
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 
State-Dependent Conformal Perception Bounds for Neuro-Symbolic Verification
Ivan Ruchkin
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
Lecture A - AI Workflows for Banking.pdf
Dr. LAM Yat-fai (林日辉)
 
Machine Learning Benefits Across Industries
SynapseIndia
 
Build with AI and GDG Cloud Bydgoszcz- ADK .pdf
jaroslawgajewski1
 
Research-Fundamentals-and-Topic-Development.pdf
ayesha butalia
 
NewMind AI Weekly Chronicles – July’25, Week III
NewMind AI
 
The Past, Present & Future of Kenya's Digital Transformation
Moses Kemibaro
 
TrustArc Webinar - Navigating Data Privacy in LATAM: Laws, Trends, and Compli...
TrustArc
 
python advanced data structure dictionary with examples python advanced data ...
sprasanna11
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Market Insight : ETH Dominance Returns
CIFDAQ
 
Peak of Data & AI Encore - Real-Time Insights & Scalable Editing with ArcGIS
Safe Software
 
SalesForce Managed Services Benefits (1).pdf
TechForce Services
 
RAT Builders - How to Catch Them All [DeepSec 2024]
malmoeb
 
AVL ( audio, visuals or led ), technology.
Rajeshwri Panchal
 

Python 1

  • 1. Python – For Beginners By Jainul Musani [ 1 ]
  • 2. Introduction to Python • A Scripting Language • Founder: Guido Van Rossum • Year: 1985- 1990 • At: National Research Institute for Mathematics and Computer Science in the Netherlands • Python is copyrighted - source code available under the GNU General Public License (GPL)
  • 3. Python Features: - 1 • General purpose, simple & Easy to Learn • Few keywords, simple structure, clear syntax. • Powerful and Versatile scripting language • Dynamic, High level and Interpreted programming language. (.pyc) • Easy-to-maintain source code  Supports multiple programming patternObject Oriented,  Imperative and  Functional or Procedural programming styles.
  • 4. Python Features: - 2 • Multipurpose language - used with web, enterprise, 3D CAD etc. • Object Oriented programming approach • Provides lots of high-level data structures. • Rapid Application Development - Python's syntax and dynamic typing, interpreted nature. • No need to use data types for variable declaration - dynamically typed (i.e. a=10 assign an integer value in an integer variable).
  • 5. Python Features: - 3 • Broad, Standard, Cross-Platform and Portable Library • Interactive Mode − allows interactive testing and debugging of snippets of code. • Portable – support a wide variety of hardware platforms and same interface on all platforms. • Extendable − you can add low-level modules to the Python interpreter.
  • 6. Python Features: - 4 • 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.
  • 7. Python Version Python Version Released Date 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 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 Python 3.6 December 23, 2016 Python 3.6.4 December 19, 2017
  • 8. Python Applications Areas: 1) Web Applications [Frameworks such as Django, Pyramid, Flask etc] 2) Desktop GUI Applications [wxWidgets, Kivy, pyqt ] 3) Software Development 4) Scientific and Numeric[SciPy, Pandas, IPython etc] 5) Business Applications [ERP and e-commerce systems i.e. Tryton] 6) Console Based Application [Ipython] 7) Audio or Video based Applications [TimPlayer, cplay etc] 8) 3D CAD Applications 9) Enterprise Applications [OpenErp, Tryton, Picalo etc] 10) Applications for Images [VPython, Gogh, imgSeek etc]
  • 9. Installation Python 2.7 To install Python, visit the python official site and download the Python distribution www.python.org/download For UBUNTU LINUX: 1) Update the APT Repository 2) Install Python 3) Verify Python (For Python3 type python3)
  • 10. Installation Python 2.7 To install Python, visit the python official site and download the Python distribution www.python.org/download For Windows operating system: (1)
  • 11. Installation Python 2.7 To install Python, visit the python official site and download the Python distribution www.python.org/download For Windows operating system: (2) downloading the Python distribution, double click on the downloaded software to execute it. Follow the following installtion steps.
  • 12. Installation Python 2.7 To install Python, visit the python official site and download the Python distribution www.python.org/download For Windows operating system: (3) – (4)
  • 13. Installation Python 2.7 To install Python, visit the python official site and download the Python distribution www.python.org/download For Windows operating system: (5)
  • 14. Installation Python 2.7 Setting path for UBUNTU Linux  To add the Python directory to the path for a particular session in Unix −  In the csh shell − type setenv PATH "$PATH:/usr/local/bin/python" and press Enter.  In the bash shell (Linux) − type export ATH="$PATH:/usr/local/bin/python" and press Enter.  In the sh or ksh shell − type PATH="$PATH:/usr/local/bin/python" and press Enter.  Note − /usr/local/bin/python is the path of the Python directory
  • 15. Installation Python 2.7 Setting path for Windows 1. Right click on My Computer and click on properties. 2. Click on Advanced System settings 3. Click on Environment Variable tab. 4. Click on new tab of user variables. 5. Write path in variable name 6. Copy the path of Python folder 7. Click on Ok button
  • 16. Test Python Installation by an Example Interactive Shell to execute code immediately and produce output instantly… 1) Go to OS command prompt 2) Type ‘python’, you will get python prompt
  • 17. Test Python Installation by an Example Test with simple Expressions
  • 18. Test Python Using Script Mode: Test with simple Expressions i) Write python code in any basic Operating System text editor (i.e. notepad, wordpad, vi etc.) and save the file with .py extension. ii) Open the Command Prompt and type ‘python file1.py’  Make sure the command you execute where the file1.py is saved.
  • 19. Test Python Using IDE: Click on Start button -> All Programs -> Python -> IDLE(Python GUI)
  • 20. Test Python Using IDE: Click on Start button -> All Programs -> Python -> IDLE(Python GUI)  To create a .py file to write a script : go to menu File > New File >  Type Python Script and save the file in python directory (i.e. file2.py)  To Execute the file2.py – Go to Menu Run > Run Module (F5)
  • 21. Next Python for Beginners Part – 2 … >>

Editor's Notes

  • #2: This template is provided by http://www.free-power-point-templates.com/