SlideShare a Scribd company logo
1 of 14
PYTHON CONCEPT
TABLE OF CONTENT:
 History
 Overview
 Language features
 Why Python?
 Basic Syntax
 Data Types
 Types of Operator
 Multithreaded Programming
 Tuples
 Conculsion
OVERVIEW:
 Python is Interpreted
 Python is Interactive
 Python is Object-Oriented
 Python is a Beginner's Language
LANGUAGE FEATURES:
 Indentation instead of braces
 Several sequence types
(i) Strings ’…’: made of characters, immutable
(ii) Lists […]: made of anything, mutable
(iii) Tuples (…) : made of anything, immutable
 Powerful subscripting (slicing)
 Functions are independent entities (not all functions are
methods)
 Exceptions as in Java
 Simple object system Iterators (like Java) and generators
WHY PYTHON?
 Good example of scripting language
 “Pythonic” style is very concise
 Powerful but unobtrusive object system
Every value is an object
 Powerful collection and iteration abstractions
Dynamic typing makes generics easy
WHICH PYTHON?
Python 2.7
 Current version on Eniac, so we’ll use it
 Last stable release before version 3
 Implements some of the new features in version 3, but fully
backwards compatible
Python 3
 Released a few years ago
 Many changes (including incompatible changes)
 Much cleaner language in many ways
 Strings use Unicode, not ASCII
BASIC SYNTAX:
 The Python language has many similarities to Perl, C, and
Java. However, there are some definite differences between
the languages.
 Syntax:
$ python
Python 2.4.3 (#1, Nov 11 2010, 13:34:43)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2
Type "help", "copyright", "credits" or "license" for
more information.
>>>
DATA TYPES:
 Python has various standard data types that are used to define
the operations possible on them and the storage method for
each of them.
 Python has five standard data types −
 Numbers
String
 List
 Tuple
 Dictionary
TYPES OF OPERATOR:
 Python language supports the following types of operators.
 Arithmetic Operators
 Comparison (Relational) Operators
 Assignment Operators
 Logical Operators
 Bitwise Operators
 Membership Operators
 Identity Operators
MULTITHREADED PROGRAMMING:
Running several threads is similar to running several different
programs concurrently, but with the following benefits −
Multiple threads within a process share the same data
space with the main thread and can therefore share information
or communicate with each other more easily than if they were
separate processes.
Threads sometimes called light-weight processes and
they do not require much memory overhead; they are cheaper
than processes.
TUPLES:
 A tuple is a sequence of immutable Python objects. Tuples are
sequences, just like lists.
 The differences between tuples and lists are, the tuples cannot
be changed unlike lists and tuples use parentheses, whereas
lists use square brackets.
 Creating a tuple is as simple as putting different comma-
separated values.
 Optionally you can put these comma-separated values
between parentheses also.
CONCULSION:
 Since then, Python has emerged as one of the top four or five
most widely used programming languages in the world.
 As it has grown in popularity, its focus on code quality and
readability, and their related impact on developer productivity,
seems to have become the more dominant factor behind
Python's success.
Thank you
https://www.besanttechnologies.com/training-
courses/python-training-institute-in-pune
Python Concepts

More Related Content

What's hot

Modern Compiler Design
Modern Compiler DesignModern Compiler Design
Modern Compiler Design
nextlib
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
Laxman Puri
 
Python introduction
Python introductionPython introduction
Python introduction
Roger Xia
 

What's hot (19)

Beginning Python
Beginning PythonBeginning Python
Beginning Python
 
Programming
ProgrammingProgramming
Programming
 
Modern Compiler Design
Modern Compiler DesignModern Compiler Design
Modern Compiler Design
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Extending Python with ctypes
Extending Python with ctypesExtending Python with ctypes
Extending Python with ctypes
 
Python Programming
Python ProgrammingPython Programming
Python Programming
 
Binary Studio Academy PRO: ANTLR course by Alexander Vasiltsov (lesson 1)
Binary Studio Academy PRO: ANTLR course by Alexander Vasiltsov (lesson 1)Binary Studio Academy PRO: ANTLR course by Alexander Vasiltsov (lesson 1)
Binary Studio Academy PRO: ANTLR course by Alexander Vasiltsov (lesson 1)
 
Using ANTLR on real example - convert "string combined" queries into paramete...
Using ANTLR on real example - convert "string combined" queries into paramete...Using ANTLR on real example - convert "string combined" queries into paramete...
Using ANTLR on real example - convert "string combined" queries into paramete...
 
C Types - Extending Python
C Types - Extending PythonC Types - Extending Python
C Types - Extending Python
 
Ctypes
CtypesCtypes
Ctypes
 
Python with data Sciences
Python with data SciencesPython with data Sciences
Python with data Sciences
 
Phython Programming Language
Phython Programming LanguagePhython Programming Language
Phython Programming Language
 
ANTLR4 and its testing
ANTLR4 and its testingANTLR4 and its testing
ANTLR4 and its testing
 
Understanding the components of standard template library
Understanding the components of standard template libraryUnderstanding the components of standard template library
Understanding the components of standard template library
 
C++ to java
C++ to javaC++ to java
C++ to java
 
Algorithms & Complexity Calculation
Algorithms & Complexity CalculationAlgorithms & Complexity Calculation
Algorithms & Complexity Calculation
 
Python introduction
Python introductionPython introduction
Python introduction
 
0x3E9 Ways To DIE
0x3E9 Ways To DIE0x3E9 Ways To DIE
0x3E9 Ways To DIE
 
GDG Helwan Introduction to python
GDG Helwan Introduction to pythonGDG Helwan Introduction to python
GDG Helwan Introduction to python
 

Similar to Python Concepts

Similar to Python Concepts (20)

Python-Concept
Python-ConceptPython-Concept
Python-Concept
 
React Js Training In Bangalore |Best ReactJs Training Institute - AchieversIT
React Js Training In Bangalore |Best ReactJs Training Institute - AchieversITReact Js Training In Bangalore |Best ReactJs Training Institute - AchieversIT
React Js Training In Bangalore |Best ReactJs Training Institute - AchieversIT
 
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
 
What is the Basic use of python (7).pdf
What is the Basic use of python (7).pdfWhat is the Basic use of python (7).pdf
What is the Basic use of python (7).pdf
 
What is the Basic use of python (7).pdf
What is the Basic use of python (7).pdfWhat is the Basic use of python (7).pdf
What is the Basic use of python (7).pdf
 
Python for katana
Python for katanaPython for katana
Python for katana
 
Summer Training Project On Python Programming
Summer Training Project On Python ProgrammingSummer Training Project On Python Programming
Summer Training Project On Python Programming
 
Python Programming 1.pptx
Python Programming 1.pptxPython Programming 1.pptx
Python Programming 1.pptx
 
PRESENTATION ON PYTHON.pptx
PRESENTATION ON PYTHON.pptxPRESENTATION ON PYTHON.pptx
PRESENTATION ON PYTHON.pptx
 
NEC PPT ET IN CS BY SUBHRAT TRIPATHI.pptx
NEC PPT ET IN CS BY SUBHRAT TRIPATHI.pptxNEC PPT ET IN CS BY SUBHRAT TRIPATHI.pptx
NEC PPT ET IN CS BY SUBHRAT TRIPATHI.pptx
 
Intro to python
Intro to pythonIntro to python
Intro to python
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Python presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, BiharPython presentation of Government Engineering College Aurangabad, Bihar
Python presentation of Government Engineering College Aurangabad, Bihar
 
Python - Module 1.ppt
Python - Module 1.pptPython - Module 1.ppt
Python - Module 1.ppt
 
Python 3 Programming Language
Python 3 Programming LanguagePython 3 Programming Language
Python 3 Programming Language
 
Government Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptxGovernment Polytechnic Arvi-1.pptx
Government Polytechnic Arvi-1.pptx
 
Shivam PPT.pptx
Shivam PPT.pptxShivam PPT.pptx
Shivam PPT.pptx
 
List and tuple in python
List and tuple in pythonList and tuple in python
List and tuple in python
 
intro to python.pptx
intro to python.pptxintro to python.pptx
intro to python.pptx
 
presentation_intro_to_python
presentation_intro_to_pythonpresentation_intro_to_python
presentation_intro_to_python
 

Recently uploaded

Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
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
PECB
 
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
SoniaTolstoy
 
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
 
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
 

Recently uploaded (20)

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...
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
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
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
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
 
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
 
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
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
IGNOU MSCCFT and PGDCFT Exam Question Pattern: MCFT003 Counselling and Family...
 
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
 
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
 
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
 
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
 
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
BAG TECHNIQUE Bag technique-a tool making use of public health bag through wh...
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
social pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajansocial pharmacy d-pharm 1st year by Pragati K. Mahajan
social pharmacy d-pharm 1st year by Pragati K. Mahajan
 
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"
 
9548086042 for call girls in Indira Nagar with room service
9548086042  for call girls in Indira Nagar  with room service9548086042  for call girls in Indira Nagar  with room service
9548086042 for call girls in Indira Nagar with room service
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 

Python Concepts

  • 2. TABLE OF CONTENT:  History  Overview  Language features  Why Python?  Basic Syntax  Data Types  Types of Operator  Multithreaded Programming  Tuples  Conculsion
  • 3. OVERVIEW:  Python is Interpreted  Python is Interactive  Python is Object-Oriented  Python is a Beginner's Language
  • 4. LANGUAGE FEATURES:  Indentation instead of braces  Several sequence types (i) Strings ’…’: made of characters, immutable (ii) Lists […]: made of anything, mutable (iii) Tuples (…) : made of anything, immutable  Powerful subscripting (slicing)  Functions are independent entities (not all functions are methods)  Exceptions as in Java  Simple object system Iterators (like Java) and generators
  • 5. WHY PYTHON?  Good example of scripting language  “Pythonic” style is very concise  Powerful but unobtrusive object system Every value is an object  Powerful collection and iteration abstractions Dynamic typing makes generics easy
  • 6. WHICH PYTHON? Python 2.7  Current version on Eniac, so we’ll use it  Last stable release before version 3  Implements some of the new features in version 3, but fully backwards compatible Python 3  Released a few years ago  Many changes (including incompatible changes)  Much cleaner language in many ways  Strings use Unicode, not ASCII
  • 7. BASIC SYNTAX:  The Python language has many similarities to Perl, C, and Java. However, there are some definite differences between the languages.  Syntax: $ python Python 2.4.3 (#1, Nov 11 2010, 13:34:43) [GCC 4.1.2 20080704 (Red Hat 4.1.2-48)] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>>
  • 8. DATA TYPES:  Python has various standard data types that are used to define the operations possible on them and the storage method for each of them.  Python has five standard data types −  Numbers String  List  Tuple  Dictionary
  • 9. TYPES OF OPERATOR:  Python language supports the following types of operators.  Arithmetic Operators  Comparison (Relational) Operators  Assignment Operators  Logical Operators  Bitwise Operators  Membership Operators  Identity Operators
  • 10. MULTITHREADED PROGRAMMING: Running several threads is similar to running several different programs concurrently, but with the following benefits − Multiple threads within a process share the same data space with the main thread and can therefore share information or communicate with each other more easily than if they were separate processes. Threads sometimes called light-weight processes and they do not require much memory overhead; they are cheaper than processes.
  • 11. TUPLES:  A tuple is a sequence of immutable Python objects. Tuples are sequences, just like lists.  The differences between tuples and lists are, the tuples cannot be changed unlike lists and tuples use parentheses, whereas lists use square brackets.  Creating a tuple is as simple as putting different comma- separated values.  Optionally you can put these comma-separated values between parentheses also.
  • 12. CONCULSION:  Since then, Python has emerged as one of the top four or five most widely used programming languages in the world.  As it has grown in popularity, its focus on code quality and readability, and their related impact on developer productivity, seems to have become the more dominant factor behind Python's success.