SlideShare ist ein Scribd-Unternehmen logo
1 von 8
PHYTHON PROGRAMMING
SAMEER PATIL
Points To Remember
 Python was develop by Guido Van Rossum in 1991.
 Python is high level language that contain feature of functional programming language like C and
Object Oriented Programming Language like Java.
 A group of objects having same behavior comes under same class.
 Standard python compiler Is written in C language and hence called Cpython.
 There are other flavors of python namely Jpython, IronPython and Pypy.
 A python program contain source code that is first compiled by Python compiler to produce byte
code. This byte code is given to Python Virtual Machine which converts the byte code to machine
code so that processor will execute it and display result.
 Python byte code is set of instruction created by Python development team to represent all type
of operation. Each Byte code occupies 1 byte of memory and hence name Byte code.
 PVM is the software containing an interpreter that converts the byte code into machine code
depending on the OS and hardware of computer system where the python program runs.
 The standard PVM is most often called Python Interpreter
 PVM contains only an interpreter and hence Python is called an Interpreter Language
 The programmer need not allocate or deallocate memory in Python. It is the duty of PVM to
allocate or deallocate memory for python program.
 Memory manager is a module in PVM which will allocate memory for objects. Garbage collector is
another module in PVM that will deallocate memory for unused objects.
 The programmer need not call the Garbage collector. It will execute automatically when the
python program is running in memory.
 In addition ,the programmer can also call the garbage collector whenever needed.
 The files that contain Python Program along with Python compiler and libraries that can be
executed directly are called as Frozen binaries.
 The PY_COMPILE module converts a python source file into a .pyc file that contain byte code
instruction. Generally .pyc files are provided to the end user.
Data Types in Python
 Comments in Python
Single line comments
Multiline Comments
DocString- if we are write string inside multiline comments and if these are written as
first statements in a module ,function ,class or methods, then these string are call
DocString.
Api documentation
Example
Python –m pydoc –w demo for api documents
How Python sees Variable
Data types in Python
None Type
Numeric Type
Sequence type
Sets
Mapping
None type
 The none datatype represent an object that doesn't contain any value. In java
it refer as Null whereas in Python it called as None.
 In python program maximum of only one none value is provided.
 It is used inside the function as default value of arguments.
 None datatypes is known as false.
Numeric Type
There are three sub type
Int , float, complex
Int no max upper limit .
Float value also can written in exponential format
Complex Data types- number format is like this a+bj or a+bJ.
Here a is real and b is imaginary
Binary octal and Hexadecimal code

Weitere ähnliche Inhalte

Was ist angesagt?

Was ist angesagt? (20)

Python | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python TutorialPython | What is Python | History of Python | Python Tutorial
Python | What is Python | History of Python | Python Tutorial
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python Tutorial Part 2
Python Tutorial Part 2Python Tutorial Part 2
Python Tutorial Part 2
 
Python
PythonPython
Python
 
Python Crash Course
Python Crash CoursePython Crash Course
Python Crash Course
 
Intro to Python
Intro to PythonIntro to Python
Intro to 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
 
Basics of python
Basics of pythonBasics of python
Basics of python
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
 
Beginning Python Programming
Beginning Python ProgrammingBeginning Python Programming
Beginning Python Programming
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Python Programming - I. Introduction
Python Programming - I. IntroductionPython Programming - I. Introduction
Python Programming - I. Introduction
 
Python Seminar PPT
Python Seminar PPTPython Seminar PPT
Python Seminar PPT
 
Python final ppt
Python final pptPython final ppt
Python final ppt
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Python for All
Python for All Python for All
Python for All
 
Why learn python in 2017?
Why learn python in 2017?Why learn python in 2017?
Why learn python in 2017?
 
Python-00 | Introduction and installing
Python-00 | Introduction and installingPython-00 | Introduction and installing
Python-00 | Introduction and installing
 
Mixing Python and Java
Mixing Python and JavaMixing Python and Java
Mixing Python and Java
 
Why Python?
Why Python?Why Python?
Why Python?
 

Ähnlich wie Python Programming

Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computer
sharanyarashmir5
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
Manohar k
 

Ähnlich wie Python Programming (20)

Python Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computerPython Programming-1.pptx of python by computer
Python Programming-1.pptx of python by computer
 
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 unit2.pptx
python unit2.pptxpython unit2.pptx
python unit2.pptx
 
Chapter - 1.pptx
Chapter - 1.pptxChapter - 1.pptx
Chapter - 1.pptx
 
Core python programming tutorial
Core python programming tutorialCore python programming tutorial
Core python programming tutorial
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
Python programming
Python programmingPython programming
Python programming
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Pyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdfPyhton-1a-Basics.pdf
Pyhton-1a-Basics.pdf
 
python-handbook.pdf
python-handbook.pdfpython-handbook.pdf
python-handbook.pdf
 
Introduction to Python Programming - I
Introduction to Python Programming  - IIntroduction to Python Programming  - I
Introduction to Python Programming - I
 
intro.pptx (1).pdf
intro.pptx (1).pdfintro.pptx (1).pdf
intro.pptx (1).pdf
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
INTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHONINTRODUCTION-TO-PYTHON
INTRODUCTION-TO-PYTHON
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data science
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Python tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academyPython tutorial for beginners - Tib academy
Python tutorial for beginners - Tib academy
 
Python Programming Draft PPT.pptx
Python Programming Draft PPT.pptxPython Programming Draft PPT.pptx
Python Programming Draft PPT.pptx
 
01 python introduction
01 python introduction 01 python introduction
01 python introduction
 

Kürzlich hochgeladen

Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Christo Ananth
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Christo Ananth
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
dharasingh5698
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
rknatarajan
 

Kürzlich hochgeladen (20)

Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTINGMANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
MANUFACTURING PROCESS-II UNIT-1 THEORY OF METAL CUTTING
 
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANJALI) Dange Chowk Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
Call for Papers - African Journal of Biological Sciences, E-ISSN: 2663-2187, ...
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
UNIT-III FMM. DIMENSIONAL ANALYSIS
UNIT-III FMM.        DIMENSIONAL ANALYSISUNIT-III FMM.        DIMENSIONAL ANALYSIS
UNIT-III FMM. DIMENSIONAL ANALYSIS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
(INDIRA) Call Girl Aurangabad Call Now 8617697112 Aurangabad Escorts 24x7
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...Booking open Available Pune Call Girls Pargaon  6297143586 Call Hot Indian Gi...
Booking open Available Pune Call Girls Pargaon 6297143586 Call Hot Indian Gi...
 
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 BookingVIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
VIP Call Girls Ankleshwar 7001035870 Whatsapp Number, 24/07 Booking
 
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and workingUNIT-V FMM.HYDRAULIC TURBINE - Construction and working
UNIT-V FMM.HYDRAULIC TURBINE - Construction and working
 
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service NashikCall Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
Call Girls Service Nashik Vaishnavi 7001305949 Independent Escort Service Nashik
 

Python Programming

  • 2. Points To Remember  Python was develop by Guido Van Rossum in 1991.  Python is high level language that contain feature of functional programming language like C and Object Oriented Programming Language like Java.  A group of objects having same behavior comes under same class.  Standard python compiler Is written in C language and hence called Cpython.  There are other flavors of python namely Jpython, IronPython and Pypy.  A python program contain source code that is first compiled by Python compiler to produce byte code. This byte code is given to Python Virtual Machine which converts the byte code to machine code so that processor will execute it and display result.  Python byte code is set of instruction created by Python development team to represent all type of operation. Each Byte code occupies 1 byte of memory and hence name Byte code.  PVM is the software containing an interpreter that converts the byte code into machine code depending on the OS and hardware of computer system where the python program runs.
  • 3.  The standard PVM is most often called Python Interpreter  PVM contains only an interpreter and hence Python is called an Interpreter Language  The programmer need not allocate or deallocate memory in Python. It is the duty of PVM to allocate or deallocate memory for python program.  Memory manager is a module in PVM which will allocate memory for objects. Garbage collector is another module in PVM that will deallocate memory for unused objects.  The programmer need not call the Garbage collector. It will execute automatically when the python program is running in memory.  In addition ,the programmer can also call the garbage collector whenever needed.  The files that contain Python Program along with Python compiler and libraries that can be executed directly are called as Frozen binaries.  The PY_COMPILE module converts a python source file into a .pyc file that contain byte code instruction. Generally .pyc files are provided to the end user.
  • 4. Data Types in Python  Comments in Python Single line comments Multiline Comments DocString- if we are write string inside multiline comments and if these are written as first statements in a module ,function ,class or methods, then these string are call DocString. Api documentation Example Python –m pydoc –w demo for api documents
  • 5. How Python sees Variable Data types in Python None Type Numeric Type Sequence type Sets Mapping
  • 6. None type  The none datatype represent an object that doesn't contain any value. In java it refer as Null whereas in Python it called as None.  In python program maximum of only one none value is provided.  It is used inside the function as default value of arguments.  None datatypes is known as false.
  • 7. Numeric Type There are three sub type Int , float, complex Int no max upper limit . Float value also can written in exponential format Complex Data types- number format is like this a+bj or a+bJ. Here a is real and b is imaginary
  • 8. Binary octal and Hexadecimal code