SlideShare uma empresa Scribd logo
1 de 27
Slide 1
Module 1
Getting Started with Python
www.ethans.co.in
Slide 2
Our Training Portfolio includes
www.ethans.co.in
Slide 3
• Why Python and where to use it?
• What is Python and history of
Python?
• Discussion about Python 2 and
Python 3
• Set up Python environment for
development
• Discuss about IDE’s like IDLE,
Pycharm and Enthought Canopy
• Demonstration on Python Installation
• Discussion about unique feature of
Python
Objective – Module 1
• Write first Python Program
• Start programming on interactive
shell.
• Using Variables, Keywords
• Interactive and Programming
technique
• Comments and document interlude
in Python
Python Introduction Python Programming
Slide 4 www.ethans.co.in
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:
"Scripts" are distinct from the core code of the application, which is usually written in a
different language, and are often created or at least modified by the end-user. Scripts are
often interpreted from source code or bytecode.
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.
What is Scripting Language?
Slide 5 www.ethans.co.in
 Python was developed by Guido van Rossum in the late
eighties and early nineties at the National Research
Institute for Mathematics and Computer Science (Centrum
Wiskunde & Informatica aka CWI) in the Netherlands.
 Python is inherited from ABC programming and has
many features including Interactive programming, object
oriented, exceptional handling and many more.
 Python was named on ‘Monty Python's Flying Circus’ a
comedy series created by the comedy group Monty
Python.
 Python Version 2.0 was released in 2000, with many
major new features including a full garbage collector and
support for unicode.
A Java-based version of Python exists in Jython and used
to work with Java code. Similarly Iron Python, a C# version
exists for the .Net.
Python is called ‘scripting language’ because of it’s
scalable interpreter, but actually it is much more than that.
History of Python
Slide 6 www.ethans.co.in
Why Python?
Easy to read  Python scripts have clear syntax, simple structure and very
few protocols to remember before programming.
Easy to Maintain  Python code is easily to write and debug. Python's success
is that its source code is fairly easy-to-maintain.
Portable  Python can run on a wide variety of Operating systems and
platforms and providing the similar interface on all
platforms.
Broad Standard Libraries  Python comes with many prebuilt libraries apx. 21K
High Level programming  Python is intended to make complex programming simpler.
Python deals with memory addresses, garbage collection
etc internally.
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. These interfaces are pretty easy to use.
GUI programming  Python supports GUI applications and has framework for
Web. Interface to tkinter, WXPython, DJango in Python
make it .
Slide 7 www.ethans.co.in
Python Features
High Level language
 Interactive and efficient
No compilation (Interpreter language)
No type declarations (Hold anything)
Automatic memory management
High-level data types and operations
Object-oriented programming
Automated garbage collection
Fewer restrictions and rules
Wide portability
 Extendible and customizable
Easy Debugging Techniques
Many editors are available for
programming
Slide 8 www.ethans.co.in
Who uses Python?
Google search engine and many other products in Google makes extensive use of
Python and it also employs Python’s creator Guido van Rossum.
The popular YouTube video sharing service is largely written in Python.
Disney uses Python in many of their creative processes.
Mozilla uses Python to explore their extensive code base and releases tons of open
source packages built in python.
Intel, Juniper, Cisco, Hewlett-Packard, Seagate, Qualcomm use Python for
automated hardware testing.
 Dropbox file hosting service is implemented using Python, Guido van Rossum now
working here.
Morgan Stanley, BNP, JP Morgan, Citibank apply Python for financial market
forecasting.
NASA, Los Alamos, JPL, use Python for scientific programming tasks.
The NSA uses Python for cryptography and intelligence analysis.
Linux Weekly News is published using a Web application written in Python using
the Quixote framework.
The Red Hat Linux distribution uses Python for its installer (anaconda) and
configuration utilities
Slide 9 www.ethans.co.in
Job Trend
Per the indeed.com, percentage growth of Python is 500 times more than it’s peer
Languages.
http://www.indeed.com/jobtrends?q=Perl%2C+.Net%2C+Python%2Cjava&l=&relative=1
Slide 10 www.ethans.co.in
Job In Big Data space
Source: http://www.forbes.com/sites/louiscolumbus/2014/12/29/where-big-
data-jobs-will-be-in-2015/
Slide 11 www.ethans.co.in
Python time line
Python 1.X
Python 2.X
Python 3.X
Python 1.5 - December 31, 1997
Python 1.6 - September 5, 2000
Python 2.5 - September
19, 2006
Python 2.6 - October 1,
2008
Python 2.7 - July 3, 2010
Python 3.1 - June 27, 2009
Python 3.2 - February 20, 2011
Python 3.3 - September 29, 2012
Python 3.4 - March 16, 2014
Slide 12 www.ethans.co.in
Python 2 or Python 3
There are couple of difference in Python2 and Python3, starting from syntax to
added functionality.
Syntax Difference example:
In Python 2, print is a function but doesn’t required mandatory parenthesis.
In Python 3, print() is a function and has mandatory parentheses.
Logic difference example:
In Python 2, division with integer returns integer, ex: 5/2 return 2 not 2.5
In Python 3, implicit division work accordingly, the above division return 2.5 as
expected.
In this Python course, we are going to use Python 2.7.X prefer to have version 2.7.9.
There are couple of reasons to use Python 2 instead of Python 3, few of them are:
The library support for new Version 3.x are not adequate.
Most of the companies software's are using version 2.x and therefore it is better to
say Python2 is most widely used version.
Slide 13 www.ethans.co.in
How to install Python?
Python is pre-installed on almost every Unix systems, including Linux and
MAC.
In case if you need latest version , you need to update the package
installation of Python with the package Installation commands of the specific
OS. (In case of any help ,student can take necessary assistance from
Absolute classes)
On Windows, Python version 2.7.X need to installed explicitly.
Latest versions are available at https://www.python.org/downloads/
Installation is done as per the instruction given by the installer.
One Python is installed on Windows user need to modify the PATH variable
to get it referred on DOS prompt.
To check whether the installation is done run the command python –V. for
Slide 14 www.ethans.co.in
IDLE Session
Slide 15 www.ethans.co.in
Interactive shell
Slide 16 www.ethans.co.in
Get Started
Starting Python
C:Usersjatin> python
Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit
(Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
Hello, World!
>>> print "Hello, Python!”
Hello, Python!
#!/usr/bin/python
print "Hello, Python!
$ chmod +x hello.py
$ python hello.py
Executing program
Scripting Mode Programming
Interactive Mode Programming
Slide 17 www.ethans.co.in
Write first Program
Slide 18 www.ethans.co.in
Introduction Variables
Python Variables
• Variables starts with a letter capital A to Z or small a to z or an
underscore (_) followed by zero or more letters, underscores and digits
(0 to 9).
• Invalid Identifiers  special characters such as @, $ and %
• Should not starts with number
• Should not names as pre-defined reserved keywords
• Variables are unlimited in length. Case is significant.
Slide 19 www.ethans.co.in
Pre-defined reserved keywords
and exec not
assert finally or
break for pass
class from print
continue global raise
def if return
del import try
elif in while
else is with
except lambda yield
Slide 20 www.ethans.co.in
Indentation language
Python Indentations
• Python blocks of code are formed by
line indentation.
• The number of spaces in the
indentation in block should be same
with others statements within the
block
A = 10
if A:
print "True"
else:
print "False"
Correct Example
A = 10
if A:
print "Answer”
print "True"
else:
print "Answer”
print "False"
Incorrect Example
Slide 21 www.ethans.co.in
Command and multiline statement
•Statements in Python typically end with a new line. Python does, however, allow
the use of the line continuation character () to denote that the line should
continue.
•Comments in Python is created with # sign
•Python doesn’t support multiline command though an another way of doing it with
documentation interlude
•Statements contained within the [], {} or () brackets do not need to use the line
continuation character.
Slide 22 www.ethans.co.in
Taking Help
Slide 23 www.ethans.co.in
execfile
•Statements in Python typically end with a new line. Python does, however, allow
the use of the line continuation character () to denote that the line should
continue.
•Comments in Python is created with # sign
•Python doesn’t support multiline command though an another way of doing it with
documentation interlude
•Statements contained within the [], {} or () brackets do not need to use the line
continuation character.
Slide 24 www.ethans.co.in
Quiz:
1 – From the following, what are the invalid variables?
a. myVariable
b. Var1
c. X
d. X
e. _x
f. 1var
g. my#Variable
2 – What will be the output of below program?
Slide 25 www.ethans.co.in
Fact at a glance
Slide 26 www.ethans.co.in
•Monty Python’s Flying Circus is a British sketch comedy series created by the
comedy group Monty Python and broadcast by the BBC from 1969 to 1974.
•The first episode was recorded on 7 September and broadcast on 5 October
1969 on BBC One, with 45 episodes airing over four series from 1969 to 1974,
plus two episodes for German TV.
•The members of Monty Python were highly educated.
•Terry and Michael are Oxford graduates.
•Eric Idle, John Cleese, and Graham Chapman attended Cambridge University.
•American-born member Terry Gilliam is an Occidental College graduate.
Source - Wiki
Interesting Fact
Slide 27 www.ethans.co.in
Have Further Questions in Module 1?
WWW.ETHANS.CO.IN

Mais conteúdo relacionado

Mais procurados

Mais procurados (18)

Python
PythonPython
Python
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Cython compiler
Cython compilerCython compiler
Cython compiler
 
Introduction to TensorFlow and OpenCV libraries
Introduction to TensorFlow and OpenCV librariesIntroduction to TensorFlow and OpenCV libraries
Introduction to TensorFlow and OpenCV libraries
 
Cmpe202 01 Research
Cmpe202 01 ResearchCmpe202 01 Research
Cmpe202 01 Research
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of python
 
Python: the Project, the Language and the Style
Python: the Project, the Language and the StylePython: the Project, the Language and the Style
Python: the Project, the Language and the Style
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - I
 
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
Python Projects For Beginners | Python Projects Examples | Python Tutorial | ...
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data science
 
Basics of python
Basics of pythonBasics of python
Basics of python
 
Introduction to python
 Introduction to python Introduction to python
Introduction to python
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notes
 
Program Logic and Design
Program Logic and DesignProgram Logic and Design
Program Logic and Design
 
C presentation -python
C presentation -pythonC presentation -python
C presentation -python
 
Getting Started with Python
Getting Started with PythonGetting Started with Python
Getting Started with Python
 
Python tutorial
Python tutorialPython tutorial
Python tutorial
 

Semelhante a Python Training in Pune - Ethans Tech Pune

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 quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfVisionAcademyProfSac
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxManohar k
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxcigogag569
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxAditya Patel
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1Kirti Verma
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfAyushDutta32
 
Module1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptxModule1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptxSandeepR95
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfbhagyashri686896
 
Python_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfPython_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfrupaliakhute
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfsannykhopade
 
Python_vision_academy notes
Python_vision_academy notes Python_vision_academy notes
Python_vision_academy notes rajaniraut
 

Semelhante a Python Training in Pune - Ethans Tech Pune (20)

python-handbook.pdf
python-handbook.pdfpython-handbook.pdf
python-handbook.pdf
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
python unit2.pptx
python unit2.pptxpython unit2.pptx
python unit2.pptx
 
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 quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Chapter - 1.pptx
Chapter - 1.pptxChapter - 1.pptx
Chapter - 1.pptx
 
Python_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdfPython_final_print_vison_academy_9822506209.pdf
Python_final_print_vison_academy_9822506209.pdf
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
 
Basic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptxBasic Python Introduction Lecture 1.pptx
Basic Python Introduction Lecture 1.pptx
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
session5-Getting stated with Python.pdf
session5-Getting stated with Python.pdfsession5-Getting stated with Python.pdf
session5-Getting stated with Python.pdf
 
Module1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptxModule1-Chapter1_ppt.pptx
Module1-Chapter1_ppt.pptx
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdfPython_final_print_batch_II_vision_academy (1).pdf
Python_final_print_batch_II_vision_academy (1).pdf
 
Python_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdfPython_final_print_batch_II_vision_academy.pdf
Python_final_print_batch_II_vision_academy.pdf
 
Python_vision_academy notes
Python_vision_academy notes Python_vision_academy notes
Python_vision_academy notes
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 

Último

Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxAmita Gupta
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxheathfieldcps1
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxAmanpreet Kaur
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...ZurliaSoop
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfciinovamais
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...christianmathematics
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxRamakrishna Reddy Bijjam
 
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
 
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
 

Último (20)

Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
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
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
Explore beautiful and ugly buildings. Mathematics helps us create beautiful d...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
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
 
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
 

Python Training in Pune - Ethans Tech Pune

  • 1. Slide 1 Module 1 Getting Started with Python www.ethans.co.in
  • 2. Slide 2 Our Training Portfolio includes www.ethans.co.in
  • 3. Slide 3 • Why Python and where to use it? • What is Python and history of Python? • Discussion about Python 2 and Python 3 • Set up Python environment for development • Discuss about IDE’s like IDLE, Pycharm and Enthought Canopy • Demonstration on Python Installation • Discussion about unique feature of Python Objective – Module 1 • Write first Python Program • Start programming on interactive shell. • Using Variables, Keywords • Interactive and Programming technique • Comments and document interlude in Python Python Introduction Python Programming
  • 4. Slide 4 www.ethans.co.in 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: "Scripts" are distinct from the core code of the application, which is usually written in a different language, and are often created or at least modified by the end-user. Scripts are often interpreted from source code or bytecode. 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. What is Scripting Language?
  • 5. Slide 5 www.ethans.co.in  Python was developed by Guido van Rossum in the late eighties and early nineties at the National Research Institute for Mathematics and Computer Science (Centrum Wiskunde & Informatica aka CWI) in the Netherlands.  Python is inherited from ABC programming and has many features including Interactive programming, object oriented, exceptional handling and many more.  Python was named on ‘Monty Python's Flying Circus’ a comedy series created by the comedy group Monty Python.  Python Version 2.0 was released in 2000, with many major new features including a full garbage collector and support for unicode. A Java-based version of Python exists in Jython and used to work with Java code. Similarly Iron Python, a C# version exists for the .Net. Python is called ‘scripting language’ because of it’s scalable interpreter, but actually it is much more than that. History of Python
  • 6. Slide 6 www.ethans.co.in Why Python? Easy to read  Python scripts have clear syntax, simple structure and very few protocols to remember before programming. Easy to Maintain  Python code is easily to write and debug. Python's success is that its source code is fairly easy-to-maintain. Portable  Python can run on a wide variety of Operating systems and platforms and providing the similar interface on all platforms. Broad Standard Libraries  Python comes with many prebuilt libraries apx. 21K High Level programming  Python is intended to make complex programming simpler. Python deals with memory addresses, garbage collection etc internally. 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. These interfaces are pretty easy to use. GUI programming  Python supports GUI applications and has framework for Web. Interface to tkinter, WXPython, DJango in Python make it .
  • 7. Slide 7 www.ethans.co.in Python Features High Level language  Interactive and efficient No compilation (Interpreter language) No type declarations (Hold anything) Automatic memory management High-level data types and operations Object-oriented programming Automated garbage collection Fewer restrictions and rules Wide portability  Extendible and customizable Easy Debugging Techniques Many editors are available for programming
  • 8. Slide 8 www.ethans.co.in Who uses Python? Google search engine and many other products in Google makes extensive use of Python and it also employs Python’s creator Guido van Rossum. The popular YouTube video sharing service is largely written in Python. Disney uses Python in many of their creative processes. Mozilla uses Python to explore their extensive code base and releases tons of open source packages built in python. Intel, Juniper, Cisco, Hewlett-Packard, Seagate, Qualcomm use Python for automated hardware testing.  Dropbox file hosting service is implemented using Python, Guido van Rossum now working here. Morgan Stanley, BNP, JP Morgan, Citibank apply Python for financial market forecasting. NASA, Los Alamos, JPL, use Python for scientific programming tasks. The NSA uses Python for cryptography and intelligence analysis. Linux Weekly News is published using a Web application written in Python using the Quixote framework. The Red Hat Linux distribution uses Python for its installer (anaconda) and configuration utilities
  • 9. Slide 9 www.ethans.co.in Job Trend Per the indeed.com, percentage growth of Python is 500 times more than it’s peer Languages. http://www.indeed.com/jobtrends?q=Perl%2C+.Net%2C+Python%2Cjava&l=&relative=1
  • 10. Slide 10 www.ethans.co.in Job In Big Data space Source: http://www.forbes.com/sites/louiscolumbus/2014/12/29/where-big- data-jobs-will-be-in-2015/
  • 11. Slide 11 www.ethans.co.in Python time line Python 1.X Python 2.X Python 3.X Python 1.5 - December 31, 1997 Python 1.6 - September 5, 2000 Python 2.5 - September 19, 2006 Python 2.6 - October 1, 2008 Python 2.7 - July 3, 2010 Python 3.1 - June 27, 2009 Python 3.2 - February 20, 2011 Python 3.3 - September 29, 2012 Python 3.4 - March 16, 2014
  • 12. Slide 12 www.ethans.co.in Python 2 or Python 3 There are couple of difference in Python2 and Python3, starting from syntax to added functionality. Syntax Difference example: In Python 2, print is a function but doesn’t required mandatory parenthesis. In Python 3, print() is a function and has mandatory parentheses. Logic difference example: In Python 2, division with integer returns integer, ex: 5/2 return 2 not 2.5 In Python 3, implicit division work accordingly, the above division return 2.5 as expected. In this Python course, we are going to use Python 2.7.X prefer to have version 2.7.9. There are couple of reasons to use Python 2 instead of Python 3, few of them are: The library support for new Version 3.x are not adequate. Most of the companies software's are using version 2.x and therefore it is better to say Python2 is most widely used version.
  • 13. Slide 13 www.ethans.co.in How to install Python? Python is pre-installed on almost every Unix systems, including Linux and MAC. In case if you need latest version , you need to update the package installation of Python with the package Installation commands of the specific OS. (In case of any help ,student can take necessary assistance from Absolute classes) On Windows, Python version 2.7.X need to installed explicitly. Latest versions are available at https://www.python.org/downloads/ Installation is done as per the instruction given by the installer. One Python is installed on Windows user need to modify the PATH variable to get it referred on DOS prompt. To check whether the installation is done run the command python –V. for
  • 16. Slide 16 www.ethans.co.in Get Started Starting Python C:Usersjatin> python Python 2.7.9 (default, Dec 10 2014, 12:24:55) [MSC v.1500 32 bit (Intel)] on win32 Type "help", "copyright", "credits" or "license" for more information. Hello, World! >>> print "Hello, Python!” Hello, Python! #!/usr/bin/python print "Hello, Python! $ chmod +x hello.py $ python hello.py Executing program Scripting Mode Programming Interactive Mode Programming
  • 18. Slide 18 www.ethans.co.in Introduction Variables Python Variables • Variables starts with a letter capital A to Z or small a to z or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9). • Invalid Identifiers  special characters such as @, $ and % • Should not starts with number • Should not names as pre-defined reserved keywords • Variables are unlimited in length. Case is significant.
  • 19. Slide 19 www.ethans.co.in Pre-defined reserved keywords and exec not assert finally or break for pass class from print continue global raise def if return del import try elif in while else is with except lambda yield
  • 20. Slide 20 www.ethans.co.in Indentation language Python Indentations • Python blocks of code are formed by line indentation. • The number of spaces in the indentation in block should be same with others statements within the block A = 10 if A: print "True" else: print "False" Correct Example A = 10 if A: print "Answer” print "True" else: print "Answer” print "False" Incorrect Example
  • 21. Slide 21 www.ethans.co.in Command and multiline statement •Statements in Python typically end with a new line. Python does, however, allow the use of the line continuation character () to denote that the line should continue. •Comments in Python is created with # sign •Python doesn’t support multiline command though an another way of doing it with documentation interlude •Statements contained within the [], {} or () brackets do not need to use the line continuation character.
  • 23. Slide 23 www.ethans.co.in execfile •Statements in Python typically end with a new line. Python does, however, allow the use of the line continuation character () to denote that the line should continue. •Comments in Python is created with # sign •Python doesn’t support multiline command though an another way of doing it with documentation interlude •Statements contained within the [], {} or () brackets do not need to use the line continuation character.
  • 24. Slide 24 www.ethans.co.in Quiz: 1 – From the following, what are the invalid variables? a. myVariable b. Var1 c. X d. X e. _x f. 1var g. my#Variable 2 – What will be the output of below program?
  • 26. Slide 26 www.ethans.co.in •Monty Python’s Flying Circus is a British sketch comedy series created by the comedy group Monty Python and broadcast by the BBC from 1969 to 1974. •The first episode was recorded on 7 September and broadcast on 5 October 1969 on BBC One, with 45 episodes airing over four series from 1969 to 1974, plus two episodes for German TV. •The members of Monty Python were highly educated. •Terry and Michael are Oxford graduates. •Eric Idle, John Cleese, and Graham Chapman attended Cambridge University. •American-born member Terry Gilliam is an Occidental College graduate. Source - Wiki Interesting Fact
  • 27. Slide 27 www.ethans.co.in Have Further Questions in Module 1? WWW.ETHANS.CO.IN

Notas do Editor

  1. Check example
  2. Check example
  3. Check example
  4. Check example