SlideShare a Scribd company logo
1 of 11
PYTHON
WHAT IS PYTHON?
Python is an interpreted high-
level programming language for general-
purpose programming. Created by Guido van
Rossum and first released in 1991, Python has a
design philosophy that emphasizes code
readability, notably using significant whitespace.
Python interpreters are available for many
operating systems.
PYTHONFEATURES
• 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.
It supports functional and structured programming
methods as well as OOP.
It can be used as a scripting language or can be
compiled to byte-code for building large applications.
It provides very high-level dynamic data types and
supports dynamic type checking.
IT supports automatic garbage collection.
It can be easily integrated with C, C++, COM, ActiveX,
CORBA, and Java.
Types of Operator
• Arithmetic Operators
• Comparison (Relational) Operators
• Assignment Operators
• Logical Operators
• Bitwise Operators
• Membership Operators
• Identity Operators
LOOPS
WHILE LOOP
FOR LOOP
NESTED LOOP
 Repeats a statement or group of statements
while a given condition is TRUE. It tests the
condition before executing the loop body.
 Executes a sequence of statements multiple
times and abbreviates the code that manages the
loop variable.
 You can use one or more loop inside any
another while, for or do..while loop.
PYTHON NUMBERS
INT - They are often called just integers or ints, are
positive or negative whole numbers with no decimal
point.
LONG -Also called longs, they are integers of unlimited
size, written like integers and followed by an uppercase or
lowercase L.
FLOAT -Floats may also be in scientific notation, with E or
e indicating the power of 10 (2.5e2 = 2.5 x 102 = 250).
COMPLEX -The real part of the number is a, and the
imaginary part is b. Complex numbers are not used much
in Python programming.
PYTHON - LIST
The list is a most versatile datatype
available in Python which can be written as a list
of comma-separated values (items) between
square brackets. Important thing about a list is
that items in a list need not be of the same type.
FOR EXAMPLE,
list1 = ['physics', 'chemistry', 1997, 2000]; list2 =
[1, 2, 3, 4, 5 ]; list3 = ["a", "b", "c", "d"]
ACCESSING VALUES IN LIST
To access values in lists, use the square
brackets for slicing along with the index or
indices to obtain value available at that index.
FOR EXAMPLE,
list1 = ['physics', 'chemistry', 1997, 2000]; list2 =
[1, 2, 3, 4, 5, 6, 7 ]; print "list1[0]: ", list1[0] print
"list2[1:5]: ", list2[1:5]
UPDATINGLIST
You can update single or multiple
elements of lists by giving the slice on the left-
hand side of the assignment operator, and you
can add to elements in a list with the append()
method.
FOR EXAMPLE,
list = ['physics', 'chemistry', 1997, 2000]; print
"Value available at index 2 : " print list[2] list[2] =
2001; print "New value available at index 2 : "
print list[2]
DELETE LIST
To remove a list element, you can use
either the del statement if you know exactly which
element(s) you are deleting or the remove()
method if you do not know.
FOR EXAMPLE,
list1 = ['physics', 'chemistry', 1997, 2000]; print
list1 del list1[2]; print "After deleting value at
index 2 : " print list1
GREENS
TECHNOLOGYS Training
Institute In Chennai
GREENS TECHNOLOGY in ADYAR offers best software training and
placement exclusively on Oracle, Selenium, Amazon Web
Services(AWS), Data Warehouse, Java, Sharepoint, Software
Testing, Informatica, Blockchain, Dot Net, Oracle DBA, Hadoop, SAS,R
Language, Tableau, Power BI, Xamarin, Node.js, ReactJS, UNIX SHELL
Scripting, C and C++, and more to the students.

More Related Content

What's hot

What's hot (18)

Control structures functions and modules in python programming
Control structures functions and modules in python programmingControl structures functions and modules in python programming
Control structures functions and modules in python programming
 
Introduction to Python
Introduction to Python  Introduction to Python
Introduction to Python
 
Datastrucure
DatastrucureDatastrucure
Datastrucure
 
Python algorithm
Python algorithmPython algorithm
Python algorithm
 
C presentation
C presentationC presentation
C presentation
 
Pa1 session 1_recap
Pa1 session 1_recapPa1 session 1_recap
Pa1 session 1_recap
 
Python list functions
Python list functionsPython list functions
Python list functions
 
C language ppt
C language pptC language ppt
C language ppt
 
Python Collections Module
Python Collections ModulePython Collections Module
Python Collections Module
 
Symbol table management and error handling in compiler design
Symbol table management and error handling in compiler designSymbol table management and error handling in compiler design
Symbol table management and error handling in compiler design
 
Chapter 9 python fundamentals
Chapter 9 python fundamentalsChapter 9 python fundamentals
Chapter 9 python fundamentals
 
Lesson 03 python statement, indentation and comments
Lesson 03   python statement, indentation and commentsLesson 03   python statement, indentation and comments
Lesson 03 python statement, indentation and comments
 
Python Objects
Python ObjectsPython Objects
Python Objects
 
Function
FunctionFunction
Function
 
Functions in c language
Functions in c language Functions in c language
Functions in c language
 
Conditional Statements
Conditional StatementsConditional Statements
Conditional Statements
 
Types of Parser
Types of ParserTypes of Parser
Types of Parser
 
Lesson 1 php syntax
Lesson 1   php syntaxLesson 1   php syntax
Lesson 1 php syntax
 

Similar to Python

Python (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualizePython (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualize
IruolagbePius
 

Similar to Python (20)

PYTHON 101.pptx
PYTHON 101.pptxPYTHON 101.pptx
PYTHON 101.pptx
 
1. python programming
1. python programming1. python programming
1. python programming
 
An overview on python commands for solving the problems
An overview on python commands for solving the problemsAn overview on python commands for solving the problems
An overview on python commands for solving the problems
 
Python - Module 1.ppt
Python - Module 1.pptPython - Module 1.ppt
Python - Module 1.ppt
 
Python (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualizePython (Data Analysis) cleaning and visualize
Python (Data Analysis) cleaning and visualize
 
Shivam PPT.pptx
Shivam PPT.pptxShivam PPT.pptx
Shivam PPT.pptx
 
Government Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptxGovernment Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptx
 
GE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_NotesGE3151_PSPP_UNIT_2_Notes
GE3151_PSPP_UNIT_2_Notes
 
Basic of Python- Hands on Session
Basic of Python- Hands on SessionBasic of Python- Hands on Session
Basic of Python- Hands on Session
 
Advance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learningAdvance Python programming languages-Simple Easy learning
Advance Python programming languages-Simple Easy learning
 
Python lab basics
Python lab basicsPython lab basics
Python lab basics
 
INTERNSHIP REPORT.docx
 INTERNSHIP REPORT.docx INTERNSHIP REPORT.docx
INTERNSHIP REPORT.docx
 
Phython presentation
Phython presentationPhython presentation
Phython presentation
 
Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning Introduction to Python for Data Science and Machine Learning
Introduction to Python for Data Science and Machine Learning
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
 
Python Demo.pptx
Python Demo.pptxPython Demo.pptx
Python Demo.pptx
 
Python (3).pdf
Python (3).pdfPython (3).pdf
Python (3).pdf
 
Python-Basics.pptx
Python-Basics.pptxPython-Basics.pptx
Python-Basics.pptx
 
Automation Testing theory notes.pptx
Automation Testing theory notes.pptxAutomation Testing theory notes.pptx
Automation Testing theory notes.pptx
 
17575602.ppt
17575602.ppt17575602.ppt
17575602.ppt
 

Recently uploaded

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
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
QucHHunhnh
 
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
heathfieldcps1
 
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
QucHHunhnh
 

Recently uploaded (20)

Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
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
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 
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
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
Disha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdfDisha NEET Physics Guide for classes 11 and 12.pdf
Disha NEET Physics Guide for classes 11 and 12.pdf
 
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"
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Advance Mobile Application Development class 07
Advance Mobile Application Development class 07Advance Mobile Application Development class 07
Advance Mobile Application Development class 07
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1Código Creativo y Arte de Software | Unidad 1
Código Creativo y Arte de Software | Unidad 1
 
Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)Software Engineering Methodologies (overview)
Software Engineering Methodologies (overview)
 
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
 

Python

  • 1. PYTHON WHAT IS PYTHON? Python is an interpreted high- level programming language for general- purpose programming. Created by Guido van Rossum and first released in 1991, Python has a design philosophy that emphasizes code readability, notably using significant whitespace. Python interpreters are available for many operating systems.
  • 2. PYTHONFEATURES • 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.
  • 3. It supports functional and structured programming methods as well as OOP. It can be used as a scripting language or can be compiled to byte-code for building large applications. It provides very high-level dynamic data types and supports dynamic type checking. IT supports automatic garbage collection. It can be easily integrated with C, C++, COM, ActiveX, CORBA, and Java.
  • 4. Types of Operator • Arithmetic Operators • Comparison (Relational) Operators • Assignment Operators • Logical Operators • Bitwise Operators • Membership Operators • Identity Operators
  • 5. LOOPS WHILE LOOP FOR LOOP NESTED LOOP  Repeats a statement or group of statements while a given condition is TRUE. It tests the condition before executing the loop body.  Executes a sequence of statements multiple times and abbreviates the code that manages the loop variable.  You can use one or more loop inside any another while, for or do..while loop.
  • 6. PYTHON NUMBERS INT - They are often called just integers or ints, are positive or negative whole numbers with no decimal point. LONG -Also called longs, they are integers of unlimited size, written like integers and followed by an uppercase or lowercase L. FLOAT -Floats may also be in scientific notation, with E or e indicating the power of 10 (2.5e2 = 2.5 x 102 = 250). COMPLEX -The real part of the number is a, and the imaginary part is b. Complex numbers are not used much in Python programming.
  • 7. PYTHON - LIST The list is a most versatile datatype available in Python which can be written as a list of comma-separated values (items) between square brackets. Important thing about a list is that items in a list need not be of the same type. FOR EXAMPLE, list1 = ['physics', 'chemistry', 1997, 2000]; list2 = [1, 2, 3, 4, 5 ]; list3 = ["a", "b", "c", "d"]
  • 8. ACCESSING VALUES IN LIST To access values in lists, use the square brackets for slicing along with the index or indices to obtain value available at that index. FOR EXAMPLE, list1 = ['physics', 'chemistry', 1997, 2000]; list2 = [1, 2, 3, 4, 5, 6, 7 ]; print "list1[0]: ", list1[0] print "list2[1:5]: ", list2[1:5]
  • 9. UPDATINGLIST You can update single or multiple elements of lists by giving the slice on the left- hand side of the assignment operator, and you can add to elements in a list with the append() method. FOR EXAMPLE, list = ['physics', 'chemistry', 1997, 2000]; print "Value available at index 2 : " print list[2] list[2] = 2001; print "New value available at index 2 : " print list[2]
  • 10. DELETE LIST To remove a list element, you can use either the del statement if you know exactly which element(s) you are deleting or the remove() method if you do not know. FOR EXAMPLE, list1 = ['physics', 'chemistry', 1997, 2000]; print list1 del list1[2]; print "After deleting value at index 2 : " print list1
  • 11. GREENS TECHNOLOGYS Training Institute In Chennai GREENS TECHNOLOGY in ADYAR offers best software training and placement exclusively on Oracle, Selenium, Amazon Web Services(AWS), Data Warehouse, Java, Sharepoint, Software Testing, Informatica, Blockchain, Dot Net, Oracle DBA, Hadoop, SAS,R Language, Tableau, Power BI, Xamarin, Node.js, ReactJS, UNIX SHELL Scripting, C and C++, and more to the students.