SlideShare a Scribd company logo
1 of 27
PYTHON
 Python was created by Guido Van Rossum
 The language was released in February I991
 Python got its name from a BBC comedy series from seventies-
“Monty Python‟s Flying Circus”.
 It is widely used general purpose, high level, interpreted
programming language.
 Python can be used to follow both Procedural approach and Object
Oriented approach of programming
 It is free to use
 Python is based on or influenced with two programming
languages:
 ABC language [replacement of BASIC]
 Modula-3
 Easy to use Object oriented language
 Expressive language
 Interpreted Language
 Dynamically –Typed language
 Its completeness
 Cross-platform Language
 Free and Open source
 Variety of Usage / Applications
• Python is compact and very easy to use object oriented
language with very simple syntax rules. It is very easy high
level language and thus very-very programmer -friendly
• More capable to express code‟s purpose than many othr
language like – swapping of two numbers:
In C++ In Python
int a=2, b=3, tmp; a,b=2,3
tmp=a; a,b=b,a
a=b;
b=temp
• It is interpreted not compiled, thus executes code line by line
and it makes python easy-to-debug and suitable for beginners
and advanced users
• When you install Python, you get everything i.e. you don‟t
need to install additional libraries. All functionality is
available with Python additional library. Features like web-
pages, database connectivity, GUI features are available in
Python standard library. Python follows – “Battery included”
philosophy
• Python can run equally on different platforms such as
Windows, Linux, UNIX, and Macintosh, etc. So, we can say
that Python is a portable language.WRITE ONCE RUN
ANYWHERE
• Python is freely available for everyone. It is freely available
on its official website www.python.org. The open-source
means, "Anyone can download its source code without paying
any penny."
CROSS PLATFORM
FREE AND OPEN SOURCE
• Python is not statically-typed like Java. You don’t need to
declare data type while defining a variable. The interpreter
determines this at runtime based on the types of the parts of
the expression. This is easy for programmers but can create
runtime errors.
DYNAMICALLY – TYPED LANGUAGE
• Python is being used in many diverse
fields/applications, some of which
are:
• Scripting
• Web Applications
• Game Development
• System Administrations
• Rapid Prototyping
• GUI Programs
• Database Applications
 Not the fastest language
 Lesser Libraries than C, Java, Perl
 Not Strong on Type-binding
 Not Easily convertible
• Because of its interpreted nature Python is not fast as
compare to compiled language. Python is first compiled
into an internal byte-code which is then executed by
Python interpreter.
• Python offers library support for almost all computing
programs, but its library is still not competent with
languages like C, java as they have larger collection
available.
• Python is not very strong on data type checking i.e. “Type-
mismatch” issues. For example if you declare variable as
integer but later store a string value in it, Python will not
raise any error.
• Because of its lack of syntax, Python is easy to program but
it becomes disadvantage when it comes to translate python
program to another language.
JUST A MINUTE
1 . Python is a _____________ language.(
2. Python is a _______________ language.(used to develop all type
of application.)
3. Who is he?
4. What is cross platform Language?
Default Installation available from www.python.org is called
Cpython installation and comes with python interpreter,
Python IDLE(Python GUI) and Pip(package installer)
ANACONDA Python distribution is one such highly
recommended distribution that comes with preloaded many
packages and libraries(NumPy, SciPy, Panda etc)
Other Popular IDEs like Sypder, PyCharm, etc. Spyder IDE
is
Before we start working on Python we need to install Python in
our computer. There are multiple distributions available today:
After Python installation we can start working with
python. In Python we can work in 2 ways:
Pythonworking
Ways
Interactive Mode
(Immediat
e Mode)
Script Mode
Interpreter, Python IDLE and pip(package installer). To work in
either interactive mode or script we need to open Python
IDLE
To work in interactive .mode, follow the process given below:
(i) Click start button - All Programs - Python 3.8IDLE
 Interactive modes – one command at a time
 Python executes the given command and gives the
output.
 In interactive mode we type command at IDLE prompt (
>>> )
 For e.g if you type 20 + 30 in from of IDLE prompt
>>> 20 + 30
50
(commandgive by user)
(outputgivenbypython)
 From the above example you can see than at >>> we
have to just give the command to execute and python
we execute it if it is error free otherwise gives an error.
)
( )
( )
(
( )
( )
print (“Hello”)
 Script Mode – multiple commands can be saved in a file
as a program and then we can execute the entire
program
 we type Python program in a file and then use the
interpreter to execute the content from the file.
 Working in interactive mode is convenient for beginners
 In Python IDLE :
 Click File -> New
 In new window type the commands you want to save in
program
 For example:
 print(“Hello World!”)
 FileSave to save file. Give extension .py to
execute it as python script
Save the
program
and press
F5
( )
Type the below code in script file:
#My FirstProgram
print(“Hello World” )
When you execute the script file output will be
only Hello World
Note: the first line starts from # which makes line as a comment i.e. only for
programmer information not for interpreter. Comments are ignored by
interpreter
To print or display output Python 3.x provides print()
function. Examples:-
print(“Welcome to Python”)
it will print Welcometo Python
print("Python rocks!‟)
it will print Pythonrocks!
Note: Python allows both single quotation and double
quotation to enclose string. In any case both opening and
closing must be same.
print(„Look carefully”)
it will give error becauseboth opening and closing
quotesare different.
Note:
1) In Python 2.x print is a statement, not a function
2) Python is case-sensitive i.e. it will treat small letter
and capital letter as two different entities like m & M
will be treated differently in Python.
3) We can use up arrow (↑) and down arrow (↓) to
select previous command and press enter to recall and
execute.
4) print statement is required only while working
with script mode otherwise in interactive mode
values can be printed without print statement
#This is my first program #sample of
basic statements
#print(“Watch out”)
print(“Johny Johny Yes Papa”)
print(“No Papa”)
(a)
Thisismyfirst program sample of basic
statementsWatch out
JohnyJohnyY
esPapa
No Papa
(c)
JohnyJohnyY
esPapa
No Papa
(b)
Watch out
JohnyJohnyY
esPapa
No Papa
(d)
Thisismyfirst program
JohnyJohnyY
esPapa
No Papa
• Who developed Python Programming Language?
• Is Python Object Oriented Language?
• Python is a high level interpreted language. What does itmeans
• What does cross-platform means?
• Python is free and open source. What do you understand by
this feature?
• What is the difference in interactive mode and Script mode in
Python?

More Related Content

What's hot

Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in pythoneShikshak
 
classes and objects in C++
classes and objects in C++classes and objects in C++
classes and objects in C++HalaiHansaika
 
Data types in python
Data types in pythonData types in python
Data types in pythonRaginiJain21
 
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 TutorialQA TrainingHub
 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statementnarmadhakin
 
Python-01| Fundamentals
Python-01| FundamentalsPython-01| Fundamentals
Python-01| FundamentalsMohd Sajjad
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019Samir Mohanty
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Edureka!
 
Python Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, DictionaryPython Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, DictionarySoba Arjun
 

What's hot (20)

Datatypes in python
Datatypes in pythonDatatypes in python
Datatypes in python
 
Python basics
Python basicsPython basics
Python basics
 
classes and objects in C++
classes and objects in C++classes and objects in C++
classes and objects in C++
 
Python programming
Python programmingPython programming
Python programming
 
Data types in python
Data types in pythonData types in python
Data types in python
 
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
 
Python
PythonPython
Python
 
Conditional and control statement
Conditional and control statementConditional and control statement
Conditional and control statement
 
Java Streams
Java StreamsJava Streams
Java Streams
 
Python
PythonPython
Python
 
Operators in python
Operators in pythonOperators in python
Operators in python
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Loops in Python
Loops in PythonLoops in Python
Loops in Python
 
Python Functions
Python   FunctionsPython   Functions
Python Functions
 
Python-01| Fundamentals
Python-01| FundamentalsPython-01| Fundamentals
Python-01| Fundamentals
 
Python tuple
Python   tuplePython   tuple
Python tuple
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
 
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
Tkinter Python Tutorial | Python GUI Programming Using Tkinter Tutorial | Pyt...
 
Python final ppt
Python final pptPython final ppt
Python final ppt
 
Python Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, DictionaryPython Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, Dictionary
 

Similar to PYTHON FEATURES.pptx

Python for students step by step guidance
Python for students step by step guidancePython for students step by step guidance
Python for students step by step guidanceMantoshKumar79
 
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 Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Niraj Bharambe
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxManohar k
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1Kirti Verma
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of pythonBijuAugustian
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxcigogag569
 
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
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners Sujith Kumar
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Languageanaveenkumar4
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxlemonchoos
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notesBhavsingh Maloth
 

Similar to PYTHON FEATURES.pptx (20)

1-ppt-python.ppt
1-ppt-python.ppt1-ppt-python.ppt
1-ppt-python.ppt
 
Python for students step by step guidance
Python for students step by step guidancePython for students step by step guidance
Python for students step by step guidance
 
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 Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
Python Book/Notes For Python Book/Notes For S.Y.B.Sc. I.T.
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
python-ppt.ppt
python-ppt.pptpython-ppt.ppt
python-ppt.ppt
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
Welcome_to_Python.pptx
Welcome_to_Python.pptxWelcome_to_Python.pptx
Welcome_to_Python.pptx
 
Python PPT1.pdf
Python PPT1.pdfPython PPT1.pdf
Python PPT1.pdf
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Chapter - 1.pptx
Chapter - 1.pptxChapter - 1.pptx
Chapter - 1.pptx
 
Fundamentals of python
Fundamentals of pythonFundamentals of python
Fundamentals of python
 
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptxa9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.pptx
a9855c3532e13484ee6a39ba30218896d7c0d863-1676987272842.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
 
Introduction python
Introduction pythonIntroduction python
Introduction python
 
Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
Python Tutorial | Python Programming Language
Python Tutorial | Python Programming LanguagePython Tutorial | Python Programming Language
Python Tutorial | Python Programming Language
 
Python_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptxPython_Introduction_Good_PPT.pptx
Python_Introduction_Good_PPT.pptx
 
python unit2.pptx
python unit2.pptxpython unit2.pptx
python unit2.pptx
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notes
 

More from MaheShiva

ppt Ncsc.pptx
ppt Ncsc.pptxppt Ncsc.pptx
ppt Ncsc.pptxMaheShiva
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxMaheShiva
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdfMaheShiva
 
Algorithm and flowchart.pptx
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptxMaheShiva
 
Forms,Frames.ppt
Forms,Frames.pptForms,Frames.ppt
Forms,Frames.pptMaheShiva
 
Forms,Frames.ppt
Forms,Frames.pptForms,Frames.ppt
Forms,Frames.pptMaheShiva
 

More from MaheShiva (6)

ppt Ncsc.pptx
ppt Ncsc.pptxppt Ncsc.pptx
ppt Ncsc.pptx
 
Number System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptxNumber System[HEXADECIMAL].pptx
Number System[HEXADECIMAL].pptx
 
004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf004 NUMBER SYSTEM (1).pdf
004 NUMBER SYSTEM (1).pdf
 
Algorithm and flowchart.pptx
Algorithm and flowchart.pptxAlgorithm and flowchart.pptx
Algorithm and flowchart.pptx
 
Forms,Frames.ppt
Forms,Frames.pptForms,Frames.ppt
Forms,Frames.ppt
 
Forms,Frames.ppt
Forms,Frames.pptForms,Frames.ppt
Forms,Frames.ppt
 

Recently uploaded

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
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
 
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
 
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
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Pooja Bhuva
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...Amil baba
 
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
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxDr. Ravikiran H M Gowda
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxmarlenawright1
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibitjbellavia9
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxannathomasp01
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSCeline George
 
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
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxCeline George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 

Recently uploaded (20)

Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
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
 
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
 
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...
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
NO1 Top Black Magic Specialist In Lahore Black magic In Pakistan Kala Ilam Ex...
 
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
 
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.
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptxHMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
HMCS Vancouver Pre-Deployment Brief - May 2024 (Web Version).pptx
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
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...
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 

PYTHON FEATURES.pptx

  • 2.  Python was created by Guido Van Rossum  The language was released in February I991  Python got its name from a BBC comedy series from seventies- “Monty Python‟s Flying Circus”.  It is widely used general purpose, high level, interpreted programming language.  Python can be used to follow both Procedural approach and Object Oriented approach of programming  It is free to use  Python is based on or influenced with two programming languages:  ABC language [replacement of BASIC]  Modula-3
  • 3.  Easy to use Object oriented language  Expressive language  Interpreted Language  Dynamically –Typed language  Its completeness  Cross-platform Language  Free and Open source  Variety of Usage / Applications
  • 4. • Python is compact and very easy to use object oriented language with very simple syntax rules. It is very easy high level language and thus very-very programmer -friendly • More capable to express code‟s purpose than many othr language like – swapping of two numbers: In C++ In Python int a=2, b=3, tmp; a,b=2,3 tmp=a; a,b=b,a a=b; b=temp
  • 5. • It is interpreted not compiled, thus executes code line by line and it makes python easy-to-debug and suitable for beginners and advanced users • When you install Python, you get everything i.e. you don‟t need to install additional libraries. All functionality is available with Python additional library. Features like web- pages, database connectivity, GUI features are available in Python standard library. Python follows – “Battery included” philosophy
  • 6. • Python can run equally on different platforms such as Windows, Linux, UNIX, and Macintosh, etc. So, we can say that Python is a portable language.WRITE ONCE RUN ANYWHERE • Python is freely available for everyone. It is freely available on its official website www.python.org. The open-source means, "Anyone can download its source code without paying any penny." CROSS PLATFORM FREE AND OPEN SOURCE
  • 7. • Python is not statically-typed like Java. You don’t need to declare data type while defining a variable. The interpreter determines this at runtime based on the types of the parts of the expression. This is easy for programmers but can create runtime errors. DYNAMICALLY – TYPED LANGUAGE
  • 8. • Python is being used in many diverse fields/applications, some of which are: • Scripting • Web Applications • Game Development • System Administrations • Rapid Prototyping • GUI Programs • Database Applications
  • 9.  Not the fastest language  Lesser Libraries than C, Java, Perl  Not Strong on Type-binding  Not Easily convertible
  • 10. • Because of its interpreted nature Python is not fast as compare to compiled language. Python is first compiled into an internal byte-code which is then executed by Python interpreter. • Python offers library support for almost all computing programs, but its library is still not competent with languages like C, java as they have larger collection available.
  • 11. • Python is not very strong on data type checking i.e. “Type- mismatch” issues. For example if you declare variable as integer but later store a string value in it, Python will not raise any error. • Because of its lack of syntax, Python is easy to program but it becomes disadvantage when it comes to translate python program to another language.
  • 12. JUST A MINUTE 1 . Python is a _____________ language.( 2. Python is a _______________ language.(used to develop all type of application.) 3. Who is he? 4. What is cross platform Language?
  • 13. Default Installation available from www.python.org is called Cpython installation and comes with python interpreter, Python IDLE(Python GUI) and Pip(package installer) ANACONDA Python distribution is one such highly recommended distribution that comes with preloaded many packages and libraries(NumPy, SciPy, Panda etc) Other Popular IDEs like Sypder, PyCharm, etc. Spyder IDE is Before we start working on Python we need to install Python in our computer. There are multiple distributions available today:
  • 14. After Python installation we can start working with python. In Python we can work in 2 ways: Pythonworking Ways Interactive Mode (Immediat e Mode) Script Mode
  • 15. Interpreter, Python IDLE and pip(package installer). To work in either interactive mode or script we need to open Python IDLE To work in interactive .mode, follow the process given below: (i) Click start button - All Programs - Python 3.8IDLE
  • 16.  Interactive modes – one command at a time  Python executes the given command and gives the output.  In interactive mode we type command at IDLE prompt ( >>> )  For e.g if you type 20 + 30 in from of IDLE prompt >>> 20 + 30 50 (commandgive by user) (outputgivenbypython)  From the above example you can see than at >>> we have to just give the command to execute and python we execute it if it is error free otherwise gives an error.
  • 17. ) ( ) ( ) ( ( ) ( ) print (“Hello”)
  • 18.  Script Mode – multiple commands can be saved in a file as a program and then we can execute the entire program  we type Python program in a file and then use the interpreter to execute the content from the file.  Working in interactive mode is convenient for beginners
  • 19.  In Python IDLE :  Click File -> New  In new window type the commands you want to save in program  For example:  print(“Hello World!”)  FileSave to save file. Give extension .py to execute it as python script
  • 21.
  • 22.
  • 23. Type the below code in script file: #My FirstProgram print(“Hello World” ) When you execute the script file output will be only Hello World Note: the first line starts from # which makes line as a comment i.e. only for programmer information not for interpreter. Comments are ignored by interpreter
  • 24. To print or display output Python 3.x provides print() function. Examples:- print(“Welcome to Python”) it will print Welcometo Python print("Python rocks!‟) it will print Pythonrocks! Note: Python allows both single quotation and double quotation to enclose string. In any case both opening and closing must be same. print(„Look carefully”) it will give error becauseboth opening and closing quotesare different.
  • 25. Note: 1) In Python 2.x print is a statement, not a function 2) Python is case-sensitive i.e. it will treat small letter and capital letter as two different entities like m & M will be treated differently in Python. 3) We can use up arrow (↑) and down arrow (↓) to select previous command and press enter to recall and execute. 4) print statement is required only while working with script mode otherwise in interactive mode values can be printed without print statement
  • 26. #This is my first program #sample of basic statements #print(“Watch out”) print(“Johny Johny Yes Papa”) print(“No Papa”) (a) Thisismyfirst program sample of basic statementsWatch out JohnyJohnyY esPapa No Papa (c) JohnyJohnyY esPapa No Papa (b) Watch out JohnyJohnyY esPapa No Papa (d) Thisismyfirst program JohnyJohnyY esPapa No Papa
  • 27. • Who developed Python Programming Language? • Is Python Object Oriented Language? • Python is a high level interpreted language. What does itmeans • What does cross-platform means? • Python is free and open source. What do you understand by this feature? • What is the difference in interactive mode and Script mode in Python?