SlideShare a Scribd company logo
1 of 15
Download to read offline
Python
www.scodenetwork.com
Contact no.- 9990211148, 9990211149
What is Python ?
Python is a general purpose, dynamic, high level and interpreted programming
language. It supports Object Oriented programming approach to develop
applications.
Python supports multiple programming pattern, including object oriented,
imperative and functional or procedural programming styles.
Python is not intended to work on special area such as web programming.That is
why it is known as multipurpose because it can be used with web, enterprise, 3D
CAD etc.
We don't need to use data types to declare variable because it is dynamically
typed so we can write a=10 to assign an integer value in an integer variable.
Python makes the development and debugging fast because there is no
compilation step included in python development and edit-test-debug cycle is
very fast.
www.scodenetwork.com
Contact no.- 9990211148, 9990211149
CompilerVs Interpreter
Compiler Interpreter
Scans the entire program and translates it as
a whole into machine code.
Translates program one statement at a time.
It takes large amount of time to analyze the
source code but the overall execution time is
comparatively faster.
It takes less amount of time to analyze the
source code but the overall execution time is
slower.
Generates intermediate object code which
further requires linking, hence requires more
memory.
No intermediate object code is generated,
hence are memory efficient.
It generates the error message only after
scanning the whole program. Hence
debugging is comparatively hard.
Continues translating the program until the
first error is met, in which case it stops. Hence
debugging is easy.
www.scodenetwork.com
Contact no.- 9990211148, 9990211149
Python History
• The implementation of Python was started in the December 1989 by GuidoVan Rossum at CWI in
Netherland.
• In February 1991, van Rossum published the code (labeled version 0.9.0) to alt. sources.
• In 1994, Python 1.0 was released with new features like: lambda, map, filter, and reduce.
• Python 2.0 added new features like: list comprehensions, garbage collection system.
• On December 3, 2008, Python 3.0 (also called "Py3K") was released. It was designed to rectify
fundamental flaw of the language.
ABC language & Modula-3
www.scodenetwork.com
Contact no.- 9990211148, 9990211149
Python Features
• Easy to Learn and Use
• Expressive Language
• Interpreted Language
• Cross-platform Language
• Free and Open Source
• Object-Oriented Language
• GUI Programming Support
• Large Standard Library
www.scodenetwork.com
Contact no.- 9990211148, 9990211149
• DynamicallyTyped
• Embedded
Flavors of Python:
1.CPython: It is the standard flavor of Python. It can be used to work
with C lanugageApplications
2. Jython or JPython: It is for JavaApplications. It can run on JVM
3. IronPython: It is for C#.Net platform
4.PyPy:The main advantage of PyPy is performance will be improved
because JIT compiler is available inside PVM.
5.RubyPython For Ruby Platforms
6. AnacondaPython It is specially designed for handling large volume of data
processing.
Python Applications
• Web Applications
• Desktop GUIApplications
• Software Development
• Scientific and Numeric
• BusinessApplications
• Console BasedApplication
• Audio orVideo based Applications
• 3D CADApplications
• Applications for Images
• EnterpriseApplications
PythonVersions
PythonVersion 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 2.X vs 3.X
Division operator
Print Function Xrange
Error Handling
Python Identifiers
A Python identifier is a name used to identify a variable, function, class, module, or other
object.An identifier starts with a letter A to Z or a to z, or an underscore (_) followed by zero
or more letters, underscores and digits (0 to 9). Python does not allow punctuation
characters such as @, $, and % within identifiers. Python is a case sensitive programming
language.Thus, Car and car are two different identifiers in Python.
Here are naming conventions for Python identifiers:
• Class names start with an uppercase letter.All other identifiers start with a
lowercase letter.
• Starting an identifier with a single leading underscore indicates that the
identifier is private.
• Starting an identifier with two leading underscores indicates a strongly private
identifier.
• If the identifier also ends with two trailing underscores, the identifier is a
language-defined special name.
Identifiers
1.The only allowed characters in Python are
:===
• alphabet symbols(either lower case or
upper case)
• digits(0 to 9)
• underscore symbol(_)
2. By mistake if we are using any other symbol
like $ then we will get syntax error.
cash = 10
ca$h =20
3. Identifier should not starts with digit
 123total
 total123
4.Identifiers are case sensitive.Of course
Python language is case sensitive language.
 total=10
TOTAL=999
 print(total) #10
 print(TOTAL) #999
Identifier:
1. Alphabet Symbols (Either Upper case OR Lower case)
2. If Identifier is start with Underscore (_) then it
indicates it is private.
3. Identifier should not start with Digits.
4. Identifiers are case sensitive.
5.We cannot use reserved words as identifiers Eg:
def=10
6.There is no length limit for Python identifiers. But not
recommended to use too lengthy identifiers.
7. Dollor ($) Symbol is not allowed in Python.
Keywords in Python
Program:
Output:
Lines and Indentation
Python provides no braces to indicate blocks of code for class and function definitions or
flow control. Blocks of code are denoted by line indentation, which is rigidly enforced.
Multi-line statements
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. For example:
Quotation in Python
Python accepts single ('), double (") and triple (''' or """) quotes to denote string
literals, as long as the same type of quote starts and ends the string.
Triple quotes are also used for multiple line comments

More Related Content

What's hot

Introduction to Python IDLE | IDLE Tutorial | Edureka
Introduction to Python IDLE | IDLE Tutorial | EdurekaIntroduction to Python IDLE | IDLE Tutorial | Edureka
Introduction to Python IDLE | IDLE Tutorial | EdurekaEdureka!
 
Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02Fariz Darari
 
Python Crash Course
Python Crash CoursePython Crash Course
Python Crash CourseHaim Michael
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming KrishnaMildain
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming pptismailmrribi
 
Python in 30 minutes!
Python in 30 minutes!Python in 30 minutes!
Python in 30 minutes!Fariz Darari
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | EdurekaPython Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | EdurekaEdureka!
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To PythonVanessa Rene
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE teachersduniya.com
 
An Introduction to Python Programming
An Introduction to Python ProgrammingAn Introduction to Python Programming
An Introduction to Python ProgrammingMorteza Zakeri
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming LanguageTahani Al-Manie
 

What's hot (20)

Python
PythonPython
Python
 
Introduction to Python IDLE | IDLE Tutorial | Edureka
Introduction to Python IDLE | IDLE Tutorial | EdurekaIntroduction to Python IDLE | IDLE Tutorial | Edureka
Introduction to Python IDLE | IDLE Tutorial | Edureka
 
Python Basics
Python BasicsPython Basics
Python Basics
 
Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02Basic Python Programming: Part 01 and Part 02
Basic Python Programming: Part 01 and Part 02
 
Python Crash Course
Python Crash CoursePython Crash Course
Python Crash Course
 
Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming Python programming | Fundamentals of Python programming
Python programming | Fundamentals of Python programming
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming ppt
 
Python in 30 minutes!
Python in 30 minutes!Python in 30 minutes!
Python in 30 minutes!
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Python Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | EdurekaPython Basics | Python Tutorial | Edureka
Python Basics | Python Tutorial | Edureka
 
Python made easy
Python made easy Python made easy
Python made easy
 
Introduction To Python
Introduction To PythonIntroduction To Python
Introduction To Python
 
Functions in Python
Functions in PythonFunctions in Python
Functions in Python
 
POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE POWER OF PYTHON PROGRAMMING LANGUAGE
POWER OF PYTHON PROGRAMMING LANGUAGE
 
Python Scipy Numpy
Python Scipy NumpyPython Scipy Numpy
Python Scipy Numpy
 
An Introduction to Python Programming
An Introduction to Python ProgrammingAn Introduction to Python Programming
An Introduction to Python Programming
 
Python
PythonPython
Python
 
Python basics
Python basicsPython basics
Python basics
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
 
Python by Rj
Python by RjPython by Rj
Python by Rj
 

Similar to python course ppt pdf

python ppt | Python Course In Ghaziabad | Scode Network Institute
python ppt | Python Course In Ghaziabad | Scode Network Institutepython ppt | Python Course In Ghaziabad | Scode Network Institute
python ppt | Python Course In Ghaziabad | Scode Network InstituteScode Network Institute
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1Kirti Verma
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfKosmikTech1
 
4_Introduction to Python Programming.pptx
4_Introduction to Python Programming.pptx4_Introduction to Python Programming.pptx
4_Introduction to Python Programming.pptxGnanesh12
 
durga python full.pdf
durga python full.pdfdurga python full.pdf
durga python full.pdfssuser476810
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxcigogag569
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1Ahmet Bulut
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxlemonchoos
 
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTHBhavsingh Maloth
 

Similar to python course ppt pdf (20)

python ppt | Python Course In Ghaziabad | Scode Network Institute
python ppt | Python Course In Ghaziabad | Scode Network Institutepython ppt | Python Course In Ghaziabad | Scode Network Institute
python ppt | Python Course In Ghaziabad | Scode Network Institute
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Python unit1
Python unit1Python unit1
Python unit1
 
Python Programming 1.pptx
Python Programming 1.pptxPython Programming 1.pptx
Python Programming 1.pptx
 
Core Python.doc
Core Python.docCore Python.doc
Core Python.doc
 
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdfpython-online&offline-training-in-kphb-hyderabad (1) (1).pdf
python-online&offline-training-in-kphb-hyderabad (1) (1).pdf
 
Introduction of Python
Introduction of PythonIntroduction of Python
Introduction of Python
 
How To Tame Python
How To Tame PythonHow To Tame Python
How To Tame Python
 
Python basics
Python basicsPython basics
Python basics
 
4_Introduction to Python Programming.pptx
4_Introduction to Python Programming.pptx4_Introduction to Python Programming.pptx
4_Introduction to Python Programming.pptx
 
Python Notes.pdf
Python Notes.pdfPython Notes.pdf
Python Notes.pdf
 
durga python full.pdf
durga python full.pdfdurga python full.pdf
durga python full.pdf
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
 
Python Programming.pptx
Python Programming.pptxPython Programming.pptx
Python Programming.pptx
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptx
 
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTHWEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
WEB PROGRAMMING UNIT VIII BY BHAVSINGH MALOTH
 
Chapter - 1.pptx
Chapter - 1.pptxChapter - 1.pptx
Chapter - 1.pptx
 

More from Scode Network Institute

More from Scode Network Institute (7)

What is Computer network
What is Computer networkWhat is Computer network
What is Computer network
 
digital marketing ppt.pptx
digital marketing ppt.pptxdigital marketing ppt.pptx
digital marketing ppt.pptx
 
What is a Computer Network
What is a Computer NetworkWhat is a Computer Network
What is a Computer Network
 
introduction of ethical hacking. (ppt)
introduction of ethical hacking. (ppt)introduction of ethical hacking. (ppt)
introduction of ethical hacking. (ppt)
 
introduction of ethical hacking. ppt
introduction of ethical hacking. pptintroduction of ethical hacking. ppt
introduction of ethical hacking. ppt
 
cyber_security_syllabus .pdf | scode network institute
cyber_security_syllabus .pdf | scode network institutecyber_security_syllabus .pdf | scode network institute
cyber_security_syllabus .pdf | scode network institute
 
Certified_Ethical_Hacker_Training ppt.pdf
Certified_Ethical_Hacker_Training ppt.pdfCertified_Ethical_Hacker_Training ppt.pdf
Certified_Ethical_Hacker_Training ppt.pdf
 

Recently uploaded

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)eniolaolutunde
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfchloefrazer622
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
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
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxSayali Powar
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxRoyAbrique
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 

Recently uploaded (20)

How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
Arihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdfArihant handbook biology for class 11 .pdf
Arihant handbook biology for class 11 .pdf
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
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
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"Mattingly "AI & Prompt Design: The Basics of Prompt Design"
Mattingly "AI & Prompt Design: The Basics of Prompt Design"
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
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
 
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptxPOINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
POINT- BIOCHEMISTRY SEM 2 ENZYMES UNIT 5.pptx
 
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptxContemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
Contemporary philippine arts from the regions_PPT_Module_12 [Autosaved] (1).pptx
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 

python course ppt pdf

  • 2. What is Python ? Python is a general purpose, dynamic, high level and interpreted programming language. It supports Object Oriented programming approach to develop applications. Python supports multiple programming pattern, including object oriented, imperative and functional or procedural programming styles. Python is not intended to work on special area such as web programming.That is why it is known as multipurpose because it can be used with web, enterprise, 3D CAD etc. We don't need to use data types to declare variable because it is dynamically typed so we can write a=10 to assign an integer value in an integer variable. Python makes the development and debugging fast because there is no compilation step included in python development and edit-test-debug cycle is very fast.
  • 4. CompilerVs Interpreter Compiler Interpreter Scans the entire program and translates it as a whole into machine code. Translates program one statement at a time. It takes large amount of time to analyze the source code but the overall execution time is comparatively faster. It takes less amount of time to analyze the source code but the overall execution time is slower. Generates intermediate object code which further requires linking, hence requires more memory. No intermediate object code is generated, hence are memory efficient. It generates the error message only after scanning the whole program. Hence debugging is comparatively hard. Continues translating the program until the first error is met, in which case it stops. Hence debugging is easy. www.scodenetwork.com Contact no.- 9990211148, 9990211149
  • 5. Python History • The implementation of Python was started in the December 1989 by GuidoVan Rossum at CWI in Netherland. • In February 1991, van Rossum published the code (labeled version 0.9.0) to alt. sources. • In 1994, Python 1.0 was released with new features like: lambda, map, filter, and reduce. • Python 2.0 added new features like: list comprehensions, garbage collection system. • On December 3, 2008, Python 3.0 (also called "Py3K") was released. It was designed to rectify fundamental flaw of the language. ABC language & Modula-3 www.scodenetwork.com Contact no.- 9990211148, 9990211149
  • 6. Python Features • Easy to Learn and Use • Expressive Language • Interpreted Language • Cross-platform Language • Free and Open Source • Object-Oriented Language • GUI Programming Support • Large Standard Library www.scodenetwork.com Contact no.- 9990211148, 9990211149
  • 7. • DynamicallyTyped • Embedded Flavors of Python: 1.CPython: It is the standard flavor of Python. It can be used to work with C lanugageApplications 2. Jython or JPython: It is for JavaApplications. It can run on JVM 3. IronPython: It is for C#.Net platform 4.PyPy:The main advantage of PyPy is performance will be improved because JIT compiler is available inside PVM. 5.RubyPython For Ruby Platforms 6. AnacondaPython It is specially designed for handling large volume of data processing.
  • 8. Python Applications • Web Applications • Desktop GUIApplications • Software Development • Scientific and Numeric • BusinessApplications • Console BasedApplication • Audio orVideo based Applications • 3D CADApplications • Applications for Images • EnterpriseApplications
  • 9. PythonVersions PythonVersion 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
  • 10. Python 2.X vs 3.X Division operator Print Function Xrange Error Handling
  • 11. Python Identifiers A Python identifier is a name used to identify a variable, function, class, module, or other object.An identifier starts with a letter A to Z or a to z, or an underscore (_) followed by zero or more letters, underscores and digits (0 to 9). Python does not allow punctuation characters such as @, $, and % within identifiers. Python is a case sensitive programming language.Thus, Car and car are two different identifiers in Python. Here are naming conventions for Python identifiers: • Class names start with an uppercase letter.All other identifiers start with a lowercase letter. • Starting an identifier with a single leading underscore indicates that the identifier is private. • Starting an identifier with two leading underscores indicates a strongly private identifier. • If the identifier also ends with two trailing underscores, the identifier is a language-defined special name.
  • 12. Identifiers 1.The only allowed characters in Python are :=== • alphabet symbols(either lower case or upper case) • digits(0 to 9) • underscore symbol(_) 2. By mistake if we are using any other symbol like $ then we will get syntax error. cash = 10 ca$h =20 3. Identifier should not starts with digit  123total  total123 4.Identifiers are case sensitive.Of course Python language is case sensitive language.  total=10 TOTAL=999  print(total) #10  print(TOTAL) #999 Identifier: 1. Alphabet Symbols (Either Upper case OR Lower case) 2. If Identifier is start with Underscore (_) then it indicates it is private. 3. Identifier should not start with Digits. 4. Identifiers are case sensitive. 5.We cannot use reserved words as identifiers Eg: def=10 6.There is no length limit for Python identifiers. But not recommended to use too lengthy identifiers. 7. Dollor ($) Symbol is not allowed in Python.
  • 14. Lines and Indentation Python provides no braces to indicate blocks of code for class and function definitions or flow control. Blocks of code are denoted by line indentation, which is rigidly enforced. Multi-line statements 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. For example:
  • 15. Quotation in Python Python accepts single ('), double (") and triple (''' or """) quotes to denote string literals, as long as the same type of quote starts and ends the string. Triple quotes are also used for multiple line comments