SlideShare ist ein Scribd-Unternehmen logo
1 von 44
PYTHON
PROGRAMMING
LANGUAGEE
INDEX
____________________________________________________________________________________________________________________________________________________________________________
 Introduction
 History
 Explanation:-
=>Program
 Comparison:-
=>Advantage
=>Disadvantages
 Python used
 Conclusion
INTRODUCTION
 Python is a general-purpose, interpreted high-level
programming language whose design philosophy emphasizes
code readability.
 Its syntax are said to be clearand expressive.
 Python has a large and comprehensive standard library.
 Python supports multiple programming paradigms,
including object-oriented, imperative and functional
programming styles.
 It features a fully dynamic type system and automatic memory
management, similar to that of Scheme, Ruby, Perl, andTcl.
 Like other dynamic languages, Python is often used as
a scripting language, but is also used in a wide range of non-
scripting contexts.
 Python interpreters are available for many operating systems.
 Python is one of a handful of modern programming languages
gaining a lot of traction In the development community
 Like Java, once written, programs can be run on any operating
system.
History
 The history of Python starts with ABC.
 This doesn't mean the "American BroadcastingCompany" nor the NewWave
band ABC, but the programming languageABC.
 ABC is a general-purpose programming language and programming
environment, which had been developed in the Netherlands,Amsterdam, at
the CWI (CentrumWiskunde & Informatica).
 The greatest achievement of ABC was to influence the design of Python.
 Python was conceptualized in the late 1980s.Guido van Rossum worked that
time in a project at the CWI, called Amoeba, a distributed operating system.
 He programmed in ABC.
 In an interview with BillVenners (January 2003), Guido van Rossum said: "I
remembered all my experience and some of my frustration with ABC.
 I decided to try to design a simple scripting language that possessed some of
ABC's better properties, but without its problems.
 So I started typing.
 I created a simple virtual machine, a simple parser, and a simple runtime.
 I made my own version of the various ABC parts that I liked. I created a basic
syntax, used indentation for statement grouping instead of curly braces or
begin-end blocks, and developed a small number of powerful data types: a
hash table ( or dictionary, as we call it), a list, strings, and numbers. "
 So, what about the name "Python": Most people think about snakes, but the
name has something to do with excellent Britisch humour.
 Guido van Rossum, the creator of Python, wrote in 1996 about the origin of
the name of his programming language: "Over six years ago, in December
1989, I was looking for a 'hobby' programming project that would keep me
occupied during the week around Christmas.
 My office ... would be closed, but I had a home computer, and not much else
on my hands.
 I decided to write an interpreter for the new scripting language I had been
thinking about lately: a descendant of ABC that would appeal to Unix/C
hackers.
 I chose Python as a working title for the project, being in a slightly irreverent
mood (and a big fan of Monty Python's Flying Circus)."
Guido van Rossum
the
Inventor of
PYTHON
.
Explanation
 Python is a dynamic, interpreted language.
 Source code does not declare the types of variables or
parameters or methods.This makes the code short and
flexible, and you lose the compile-time type checking in the
source code.
 Python tracks the types of all values at runtime and flags code
that does not make sense as it runs.
 An excellent way to see how Python code works is to run the
Python interpreter and type code right into it.
 If you ever have a question like "what happens if I add an int to
a list?" ... just typing it into the Python interpreter is fast way to
see what happens.
 Python code does not declare the types of variables -- just assign to
them and go.
 Python raises a runtime error if the code tries to read from a
variable that has not been given a value.
 Like C++ and Java, Python is case sensitive so "a" and "A" are
different variables.
 The end of a line marks the end of a statement, so unlike C++ and
Java, Python does not require a semicolon at the end of each
statement.
 You can include semicolons at the end of Python statements
(perhaps just out of habit), but it's not the best style.
 Comments begin with a '#' and extend to the end of the line.
PYTHON
INTERPRETER
Programs:-
 Calculations.
 Comments.
 Variables.
 String.
 Statements.
 Loop:-
• The while loop.
 Condition.
• If.
• If else.
• If elif.
Compari
son
 Python is often compared to other interpreted languages such as
Java, JavaScript, Perl,Tcl, or Smalltalk.
 Comparisons to C++, Common Lisp and Scheme can also be
enlightening. In this section I will briefly compare Python to each
of these languages.
 These comparisons concentrate on language issues only.
 In practice, the choice of a programming language is often
dictated by other real-world constraints such as cost, availability,
training, and prior investment, or even emotional attachment.
 Since these aspects are highly variable, it seems a waste of time to
consider them much for this comparison
Javascript
 Python's "object-based" subset is roughly equivalent to
JavaScript.
 Like JavaScript (and unlike Java), Python supports a
programming style that uses simple functions and variables
without engaging in class definitions.
 However, for JavaScript, that's all there is. Python, on the
other hand, supports writing much larger programs and
better code reuse through a true object-oriented
programming style, where classes and inheritance play an
important role.
Perl
 Python and Perl come from a similar background (Unix scripting, which
both have long outgrown), and sport many similar features, but have a
different philosophy.
 Perl emphasizes support for common application-oriented tasks, e.g.
by having built-in regular expressions, file scanning and report
generating features.
 Python emphasizes support for common programming methodologies
such as data structure design and object-oriented programming, and
encourages programmers to write readable (and thus maintainable)
code by providing an elegant but not overly cryptic notation.
 As a consequence, Python comes close to Perl but rarely beats it in its
original application domain; however Python has an applicability well
beyond Perl's niche.
Tcl
 Like Python,Tcl is usable as an application extension language, as well
as a stand-alone programming language.
 However,Tcl, which traditionally stores all data as strings, is weak on
data structures, and executes typical code much slower than Python.
 Tcl also lacks features needed for writing large programs, such as
modular namespaces.
 Thus, while a "typical" large application usingTcl usually containsTcl
extensions written in C or C++ that are specific to that application, an
equivalent Python application can often be written in "pure Python".
 Of course, pure Python development is much quicker than having to
write and debug a C or C++ component.
 It has been said thatTcl's one redeeming quality is theTk toolkit.
Python has adopted an interface toTk as its standard GUI
component library.
 Tcl 8.0 addresses the speed issuse by providing a bytecode
compiler with limited data type support, and adds namespaces.
However, it is still a much more cumbersome programming
language.
Smalltalk
 Perhaps the biggest difference between Python and Smalltalk
is Python's more "mainstream" syntax, which gives it a leg up
on programmer training.
 Like Smalltalk, Python has dynamic typing and binding, and
everything in Python is an object. However, Python
distinguishes built-in object types from user-defined classes,
and currently doesn't allow inheritance from built-in types.
 Smalltalk's standard library of collection data types is more
refined, while Python's library has more facilities for dealing
with Internet and WWW realities such as email, HTML and FTP.
 Python has a different philosophy regarding the development
environment and distribution of code.
 Where Smalltalk traditionally has a monolithic "system
image" which comprises both the environment and the user's
program, Python stores both standard modules and user
modules in individual files which can easily be rearranged or
distributed outside the system.
 One consequence is that there is more than one option for
attaching a Graphical User Interface (GUI) to a Python
program, since the GUI is not built into the system.
Common Lisp and Scheme
 These languages are close to Python in their dynamic
semantics, but so different in their approach to syntax that a
comparison becomes almost a religious argument: is Lisp's
lack of syntax an advantage or a disadvantage? It should be
noted that Python has introspective capabilities similar to
those of Lisp, and Python programs can construct and
execute program fragments on the fly.
 Usually, real-world properties are decisive: Common Lisp is
big (in every sense), and the Scheme world is fragmented
between many incompatible versions, where Python has a
single, free, compact implementation.
Java
 Python programs are generally expected to run slower than Java programs,
but they also take much less time to develop.
 Python programs are typically 3-5 times shorter than equivalent Java
programs.This difference can be attributed to Python's built-in high-level
data types and its dynamic typing.
 For example, a Python programmer wastes no time declaring the types of
arguments or variables, and Python's powerful polymorphic list and dictionary
types, for which rich syntactic support is built straight into the language, find
a use in almost every Python program.
 Because of the run-time typing, Python's run time must work harder than
Java's. For example, when evaluating the expression a+b, it must first inspect
the objects a and b to find out their type, which is not known at compile time.
 It then invokes the appropriate addition operation, which may be an
overloaded user-defined method.
C++
 Almost everything said for Java also applies forC++, just more
so: where Python code is typically 3-5 times shorter than
equivalent Java code, it is often 5-10 times shorter than
equivalent C++ code! Anecdotal evidence suggests that one
Python programmer can finish in two months what two C++
programmers can't complete in a year.
 Python shines as a glue language, used to combine
components written in C++.
Python:-
 Python is newer.
 It is loosly typed language.
 It's runtime is slow.
 It's code are faster to write.
 It is really fun to write with its easier, and its rich features.
 As python is gaining levels really fast.
C:-
 C is old.
 It is pretty strictly typed language.
 It's runtime is extremely fast.
 It's code are slow to write.
 C is "richer" and becaust its "older", its used in more apps, and
in the open source community its more helpful.
 Since, kernel and many basic commands are made in c.
Advantages
 The language doesn't provide a rich syntax, which is really
helpful.
 The idea behind that is to keep you thinking about the
business rules of your application and not to spend time
trying to figure out what command you should use.
 It is also true that Python is interactive, portable, easy to
learn, easy to use, and a serious language.
 Furthermore, it provides dynamic semantics and rapid
prototyping capabilities.
 Python is largely known as a glue language that connects
existing components.
 It is embeddable in applications from other languages
(C/C++, Java, and so on), and it is also possible to add new
modules to Python, extending its core vocabulary.
 The next couple of paragraphs list and explain why Python is
a cool programming language and what things make Python
more flexible than other languages.
Readability
 Python's syntax is clear and readable.
 The way Python's syntax is organized imposes some
order to programmers.
 Experts and beginners can easily understand the code
and everyone can become productive in Python very
quickly.
It Is Simple to Get Support
 The Python community always provides support to Python
users.
 As we already know, Python code is freely available for
everyone.
 Therefore, thousands of developers worldwide are working
hard to find bugs and create patches to fix those bugs.
Fast to Learn
 The language is very easy to learn because its source code resembles
pseudo code.
 It doesn't ask for long and strange lines of code.
 Therefore, less training is a direct result.
 Companies don't need to spend much time to have their programmers
coding in Python.
 Once you start learning Python, you can do useful coding almost
immediately.
 And after some practice, your productivity will suddenly increase.
 You can design a high-level, object-oriented programming code in a
friendly and interpreted Python environment.
 This feature works great for small tasks.
Fast to Code
 Python provides fast feedback in several ways.
 First, the programmer can skip many tasks that other
languages require him to take.
 Therefore, it reduces both the cost of program maintenance
and the development time.
Reusability
 Python encourages program reusability by implementing
modules and packages.
 A large set of modules has already been developed and is
provided asThe Standard Python Library, which is part of the
Python distribution.
 You can easily share functionality between your programs by
breaking the programs into modules, and reusing the
modules as components of other programs.
Disadvantages
 Python isn't the best for memory intensive tasks.
 Python is interpreted language & is slow compared to C/C++
or java.
 Python not a great choice for a high-graphic 3d game that
takes up a lot of CPU.
 Python is evolving continuously, with constant evolution
there is little substantial documentation available for the
language
Conclusion
 Python is an easy to learn and powerful
programming language as it is known in
common parlance, there is nevertheless need
of a good introduction and tutorial on the
Python language.
PresentatedbyF.Y.BSc.
ComputerScienceStudents
Laksh
Nikita
Shamiksha
Shamima
Swapnil
One for group,
And Group for all.
-:Be together
Python Programming Language

Weitere ähnliche Inhalte

Was ist angesagt?

Python programming introduction
Python programming introductionPython programming introduction
Python programming introductionSiddique Ibrahim
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its ApplicationsAbhijeet Singh
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programmingavikdhupar
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programmingSrinivas Narasegouda
 
Command line arguments
Command line argumentsCommand line arguments
Command line argumentsAshok Raj
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1Kirti Verma
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to PythonNowell Strite
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on pythonwilliam john
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-pythonAakashdata
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming pptismailmrribi
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageDr.YNM
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An IntroductionSwarit Wadhe
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019Samir Mohanty
 
Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Pedro Rodrigues
 

Was ist angesagt? (20)

Python programming introduction
Python programming introductionPython programming introduction
Python programming introduction
 
Introduction to python
Introduction to pythonIntroduction to python
Introduction to python
 
Python and its Applications
Python and its ApplicationsPython and its Applications
Python and its Applications
 
Basics of C programming
Basics of C programmingBasics of C programming
Basics of C programming
 
Introduction to python programming
Introduction to python programmingIntroduction to python programming
Introduction to python programming
 
Python Control structures
Python Control structuresPython Control structures
Python Control structures
 
Command line arguments
Command line argumentsCommand line arguments
Command line arguments
 
Python final presentation kirti ppt1
Python final presentation kirti ppt1Python final presentation kirti ppt1
Python final presentation kirti ppt1
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Presentation on python
Presentation on pythonPresentation on python
Presentation on python
 
Introduction to-python
Introduction to-pythonIntroduction to-python
Introduction to-python
 
Python Presentation
Python PresentationPython Presentation
Python Presentation
 
Python Programming ppt
Python Programming pptPython Programming ppt
Python Programming ppt
 
C++ Overview PPT
C++ Overview PPTC++ Overview PPT
C++ Overview PPT
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Python - An Introduction
Python - An IntroductionPython - An Introduction
Python - An Introduction
 
Python Functions
Python   FunctionsPython   Functions
Python Functions
 
Parsing
ParsingParsing
Parsing
 
Overview of python 2019
Overview of python 2019Overview of python 2019
Overview of python 2019
 
Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)Introduction to the basics of Python programming (part 1)
Introduction to the basics of Python programming (part 1)
 

Andere mochten auch

Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners Sujith Kumar
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Paige Bailey
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesMatt Harrison
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python amiable_indian
 
Python PPT
Python PPTPython PPT
Python PPTEdureka!
 
Thinking hard about_python
Thinking hard about_pythonThinking hard about_python
Thinking hard about_pythonDaniel Greenfeld
 
Python Tricks That You Can't Live Without
Python Tricks That You Can't Live WithoutPython Tricks That You Can't Live Without
Python Tricks That You Can't Live WithoutAudrey Roy
 
Why Python?
Why Python?Why Python?
Why Python?Adam Pah
 
Advanced Python : Static and Class Methods
Advanced Python : Static and Class Methods Advanced Python : Static and Class Methods
Advanced Python : Static and Class Methods Bhanwar Singh Meena
 
Python in real world.
Python in real world.Python in real world.
Python in real world.Alph@.M
 
Python Programming - I. Introduction
Python Programming - I. IntroductionPython Programming - I. Introduction
Python Programming - I. IntroductionRanel Padon
 
Multithreading 101
Multithreading 101Multithreading 101
Multithreading 101Tim Penhey
 
Advance OOP concepts in Python
Advance OOP concepts in PythonAdvance OOP concepts in Python
Advance OOP concepts in PythonSujith Kumar
 
Basics of Object Oriented Programming in Python
Basics of Object Oriented Programming in PythonBasics of Object Oriented Programming in Python
Basics of Object Oriented Programming in PythonSujith Kumar
 
An Introduction to Python Programming
An Introduction to Python ProgrammingAn Introduction to Python Programming
An Introduction to Python ProgrammingMorteza Zakeri
 
Intro to Python Programming Language
Intro to Python Programming LanguageIntro to Python Programming Language
Intro to Python Programming LanguageDipankar Achinta
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On PythonShivam Gupta
 

Andere mochten auch (20)

Introduction to python for Beginners
Introduction to python for Beginners Introduction to python for Beginners
Introduction to python for Beginners
 
Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)Python 101: Python for Absolute Beginners (PyTexas 2014)
Python 101: Python for Absolute Beginners (PyTexas 2014)
 
Learn 90% of Python in 90 Minutes
Learn 90% of Python in 90 MinutesLearn 90% of Python in 90 Minutes
Learn 90% of Python in 90 Minutes
 
Introduction to Python
Introduction to Python Introduction to Python
Introduction to Python
 
Python PPT
Python PPTPython PPT
Python PPT
 
Python Worst Practices
Python Worst PracticesPython Worst Practices
Python Worst Practices
 
Thinking hard about_python
Thinking hard about_pythonThinking hard about_python
Thinking hard about_python
 
Python Tricks That You Can't Live Without
Python Tricks That You Can't Live WithoutPython Tricks That You Can't Live Without
Python Tricks That You Can't Live Without
 
Why Python?
Why Python?Why Python?
Why Python?
 
Advanced Python : Static and Class Methods
Advanced Python : Static and Class Methods Advanced Python : Static and Class Methods
Advanced Python : Static and Class Methods
 
Lets learn Python !
Lets learn Python !Lets learn Python !
Lets learn Python !
 
Python in real world.
Python in real world.Python in real world.
Python in real world.
 
Python Programming - I. Introduction
Python Programming - I. IntroductionPython Programming - I. Introduction
Python Programming - I. Introduction
 
Multithreading 101
Multithreading 101Multithreading 101
Multithreading 101
 
Python Intro
Python IntroPython Intro
Python Intro
 
Advance OOP concepts in Python
Advance OOP concepts in PythonAdvance OOP concepts in Python
Advance OOP concepts in Python
 
Basics of Object Oriented Programming in Python
Basics of Object Oriented Programming in PythonBasics of Object Oriented Programming in Python
Basics of Object Oriented Programming in Python
 
An Introduction to Python Programming
An Introduction to Python ProgrammingAn Introduction to Python Programming
An Introduction to Python Programming
 
Intro to Python Programming Language
Intro to Python Programming LanguageIntro to Python Programming Language
Intro to Python Programming Language
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 

Ähnlich wie Python Programming Language

Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxManohar k
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data sciencebhavesh lande
 
Introducing Python Tutorial.pdf
Introducing Python Tutorial.pdfIntroducing Python Tutorial.pdf
Introducing Python Tutorial.pdfrubaabNaseer
 
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.pptx
Introduction_to_Python.pptxIntroduction_to_Python.pptx
Introduction_to_Python.pptxVinay Chowdary
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notesBhavsingh Maloth
 
What is Python.pptx
What is Python.pptxWhat is Python.pptx
What is Python.pptxMalluKomar
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechRamanamurthy Banda
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMindfire LLC
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfTraining report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfYadavHarshKr
 
Session-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxSession-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxWajidAliHashmi2
 

Ähnlich wie Python Programming Language (20)

Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Python Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docxPython Programming and ApplicationsUnit-1.docx
Python Programming and ApplicationsUnit-1.docx
 
introduction of python in data science
introduction of python in data scienceintroduction of python in data science
introduction of python in data science
 
What is python
What is pythonWhat is python
What is python
 
Introducing Python Tutorial.pdf
Introducing Python Tutorial.pdfIntroducing Python Tutorial.pdf
Introducing Python Tutorial.pdf
 
Cmpe202 01 Research
Cmpe202 01 ResearchCmpe202 01 Research
Cmpe202 01 Research
 
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 To Python
Introduction To PythonIntroduction To Python
Introduction To Python
 
Introduction_to_Python.pptx
Introduction_to_Python.pptxIntroduction_to_Python.pptx
Introduction_to_Python.pptx
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Web Programming UNIT VIII notes
Web Programming UNIT VIII notesWeb Programming UNIT VIII notes
Web Programming UNIT VIII notes
 
What is Python.pptx
What is Python.pptxWhat is Python.pptx
What is Python.pptx
 
Python Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & TechPython Programming Unit1_Aditya College of Engg & Tech
Python Programming Unit1_Aditya College of Engg & Tech
 
MODULE 1.pptx
MODULE 1.pptxMODULE 1.pptx
MODULE 1.pptx
 
Migration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent DecisionMigration of Applications to Python is the most prudent Decision
Migration of Applications to Python is the most prudent Decision
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Introduction of Python
Introduction of PythonIntroduction of Python
Introduction of Python
 
Python
PythonPython
Python
 
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdfTraining report 1923-b.e-eee-batchno--intern-54 (1).pdf
Training report 1923-b.e-eee-batchno--intern-54 (1).pdf
 
Session-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptxSession-1_Introduction to Python.pptx
Session-1_Introduction to Python.pptx
 

Mehr von Laxman Puri

Remote access from a smartphone ppt
Remote access from a smartphone pptRemote access from a smartphone ppt
Remote access from a smartphone pptLaxman Puri
 
Co relation between dfd & event table
Co relation between dfd & event tableCo relation between dfd & event table
Co relation between dfd & event tableLaxman Puri
 
Java byte code & virtual machine
Java byte code & virtual machineJava byte code & virtual machine
Java byte code & virtual machineLaxman Puri
 
Inheritance in C++
Inheritance in C++Inheritance in C++
Inheritance in C++Laxman Puri
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer GraphicsLaxman Puri
 

Mehr von Laxman Puri (7)

Remote access from a smartphone ppt
Remote access from a smartphone pptRemote access from a smartphone ppt
Remote access from a smartphone ppt
 
Processors
ProcessorsProcessors
Processors
 
Dbms rlde.ppt
Dbms rlde.pptDbms rlde.ppt
Dbms rlde.ppt
 
Co relation between dfd & event table
Co relation between dfd & event tableCo relation between dfd & event table
Co relation between dfd & event table
 
Java byte code & virtual machine
Java byte code & virtual machineJava byte code & virtual machine
Java byte code & virtual machine
 
Inheritance in C++
Inheritance in C++Inheritance in C++
Inheritance in C++
 
Clipping in Computer Graphics
Clipping in Computer GraphicsClipping in Computer Graphics
Clipping in Computer Graphics
 

Kürzlich hochgeladen

Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfCionsystems
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsAlberto González Trastoy
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️anilsa9823
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdfWave PLM
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendArshad QA
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...panagenda
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Steffen Staab
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...gurkirankumar98700
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software DevelopersVinodh Ram
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsAndolasoft Inc
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxbodapatigopi8531
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...OnePlan Solutions
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....ShaimaaMohamedGalal
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...MyIntelliSource, Inc.
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...ICS
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfjoe51371421
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...harshavardhanraghave
 

Kürzlich hochgeladen (20)

Active Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdfActive Directory Penetration Testing, cionsystems.com.pdf
Active Directory Penetration Testing, cionsystems.com.pdf
 
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time ApplicationsUnveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
Unveiling the Tech Salsa of LAMs with Janus in Real-Time Applications
 
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online  ☂️
CALL ON ➥8923113531 🔝Call Girls Kakori Lucknow best sexual service Online ☂️
 
5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf5 Signs You Need a Fashion PLM Software.pdf
5 Signs You Need a Fashion PLM Software.pdf
 
Exploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the ProcessExploring iOS App Development: Simplifying the Process
Exploring iOS App Development: Simplifying the Process
 
Test Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and BackendTest Automation Strategy for Frontend and Backend
Test Automation Strategy for Frontend and Backend
 
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
W01_panagenda_Navigating-the-Future-with-The-Hitchhikers-Guide-to-Notes-and-D...
 
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
Shapes for Sharing between Graph Data Spaces - and Epistemic Querying of RDF-...
 
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS LiveVip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
Vip Call Girls Noida ➡️ Delhi ➡️ 9999965857 No Advance 24HRS Live
 
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
(Genuine) Escort Service Lucknow | Starting ₹,5K To @25k with A/C 🧑🏽‍❤️‍🧑🏻 89...
 
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICECHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
CHEAP Call Girls in Pushp Vihar (-DELHI )🔝 9953056974🔝(=)/CALL GIRLS SERVICE
 
Professional Resume Template for Software Developers
Professional Resume Template for Software DevelopersProfessional Resume Template for Software Developers
Professional Resume Template for Software Developers
 
How To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.jsHow To Use Server-Side Rendering with Nuxt.js
How To Use Server-Side Rendering with Nuxt.js
 
Hand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptxHand gesture recognition PROJECT PPT.pptx
Hand gesture recognition PROJECT PPT.pptx
 
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
Tech Tuesday-Harness the Power of Effective Resource Planning with OnePlan’s ...
 
Clustering techniques data mining book ....
Clustering techniques data mining book ....Clustering techniques data mining book ....
Clustering techniques data mining book ....
 
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
Try MyIntelliAccount Cloud Accounting Software As A Service Solution Risk Fre...
 
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
The Real-World Challenges of Medical Device Cybersecurity- Mitigating Vulnera...
 
why an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdfwhy an Opensea Clone Script might be your perfect match.pdf
why an Opensea Clone Script might be your perfect match.pdf
 
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
Reassessing the Bedrock of Clinical Function Models: An Examination of Large ...
 

Python Programming Language

  • 1.
  • 5.  Python is a general-purpose, interpreted high-level programming language whose design philosophy emphasizes code readability.  Its syntax are said to be clearand expressive.  Python has a large and comprehensive standard library.  Python supports multiple programming paradigms, including object-oriented, imperative and functional programming styles.  It features a fully dynamic type system and automatic memory management, similar to that of Scheme, Ruby, Perl, andTcl.
  • 6.  Like other dynamic languages, Python is often used as a scripting language, but is also used in a wide range of non- scripting contexts.  Python interpreters are available for many operating systems.  Python is one of a handful of modern programming languages gaining a lot of traction In the development community  Like Java, once written, programs can be run on any operating system.
  • 8.  The history of Python starts with ABC.  This doesn't mean the "American BroadcastingCompany" nor the NewWave band ABC, but the programming languageABC.  ABC is a general-purpose programming language and programming environment, which had been developed in the Netherlands,Amsterdam, at the CWI (CentrumWiskunde & Informatica).  The greatest achievement of ABC was to influence the design of Python.  Python was conceptualized in the late 1980s.Guido van Rossum worked that time in a project at the CWI, called Amoeba, a distributed operating system.
  • 9.  He programmed in ABC.  In an interview with BillVenners (January 2003), Guido van Rossum said: "I remembered all my experience and some of my frustration with ABC.  I decided to try to design a simple scripting language that possessed some of ABC's better properties, but without its problems.  So I started typing.  I created a simple virtual machine, a simple parser, and a simple runtime.  I made my own version of the various ABC parts that I liked. I created a basic syntax, used indentation for statement grouping instead of curly braces or begin-end blocks, and developed a small number of powerful data types: a hash table ( or dictionary, as we call it), a list, strings, and numbers. "
  • 10.  So, what about the name "Python": Most people think about snakes, but the name has something to do with excellent Britisch humour.  Guido van Rossum, the creator of Python, wrote in 1996 about the origin of the name of his programming language: "Over six years ago, in December 1989, I was looking for a 'hobby' programming project that would keep me occupied during the week around Christmas.  My office ... would be closed, but I had a home computer, and not much else on my hands.  I decided to write an interpreter for the new scripting language I had been thinking about lately: a descendant of ABC that would appeal to Unix/C hackers.  I chose Python as a working title for the project, being in a slightly irreverent mood (and a big fan of Monty Python's Flying Circus)."
  • 12. .
  • 14.  Python is a dynamic, interpreted language.  Source code does not declare the types of variables or parameters or methods.This makes the code short and flexible, and you lose the compile-time type checking in the source code.  Python tracks the types of all values at runtime and flags code that does not make sense as it runs.  An excellent way to see how Python code works is to run the Python interpreter and type code right into it.  If you ever have a question like "what happens if I add an int to a list?" ... just typing it into the Python interpreter is fast way to see what happens.
  • 15.  Python code does not declare the types of variables -- just assign to them and go.  Python raises a runtime error if the code tries to read from a variable that has not been given a value.  Like C++ and Java, Python is case sensitive so "a" and "A" are different variables.  The end of a line marks the end of a statement, so unlike C++ and Java, Python does not require a semicolon at the end of each statement.  You can include semicolons at the end of Python statements (perhaps just out of habit), but it's not the best style.  Comments begin with a '#' and extend to the end of the line.
  • 17.
  • 18. Programs:-  Calculations.  Comments.  Variables.  String.  Statements.  Loop:- • The while loop.  Condition. • If. • If else. • If elif.
  • 20.  Python is often compared to other interpreted languages such as Java, JavaScript, Perl,Tcl, or Smalltalk.  Comparisons to C++, Common Lisp and Scheme can also be enlightening. In this section I will briefly compare Python to each of these languages.  These comparisons concentrate on language issues only.  In practice, the choice of a programming language is often dictated by other real-world constraints such as cost, availability, training, and prior investment, or even emotional attachment.  Since these aspects are highly variable, it seems a waste of time to consider them much for this comparison
  • 21. Javascript  Python's "object-based" subset is roughly equivalent to JavaScript.  Like JavaScript (and unlike Java), Python supports a programming style that uses simple functions and variables without engaging in class definitions.  However, for JavaScript, that's all there is. Python, on the other hand, supports writing much larger programs and better code reuse through a true object-oriented programming style, where classes and inheritance play an important role.
  • 22. Perl  Python and Perl come from a similar background (Unix scripting, which both have long outgrown), and sport many similar features, but have a different philosophy.  Perl emphasizes support for common application-oriented tasks, e.g. by having built-in regular expressions, file scanning and report generating features.  Python emphasizes support for common programming methodologies such as data structure design and object-oriented programming, and encourages programmers to write readable (and thus maintainable) code by providing an elegant but not overly cryptic notation.  As a consequence, Python comes close to Perl but rarely beats it in its original application domain; however Python has an applicability well beyond Perl's niche.
  • 23. Tcl  Like Python,Tcl is usable as an application extension language, as well as a stand-alone programming language.  However,Tcl, which traditionally stores all data as strings, is weak on data structures, and executes typical code much slower than Python.  Tcl also lacks features needed for writing large programs, such as modular namespaces.  Thus, while a "typical" large application usingTcl usually containsTcl extensions written in C or C++ that are specific to that application, an equivalent Python application can often be written in "pure Python".  Of course, pure Python development is much quicker than having to write and debug a C or C++ component.
  • 24.  It has been said thatTcl's one redeeming quality is theTk toolkit. Python has adopted an interface toTk as its standard GUI component library.  Tcl 8.0 addresses the speed issuse by providing a bytecode compiler with limited data type support, and adds namespaces. However, it is still a much more cumbersome programming language.
  • 25. Smalltalk  Perhaps the biggest difference between Python and Smalltalk is Python's more "mainstream" syntax, which gives it a leg up on programmer training.  Like Smalltalk, Python has dynamic typing and binding, and everything in Python is an object. However, Python distinguishes built-in object types from user-defined classes, and currently doesn't allow inheritance from built-in types.  Smalltalk's standard library of collection data types is more refined, while Python's library has more facilities for dealing with Internet and WWW realities such as email, HTML and FTP.
  • 26.  Python has a different philosophy regarding the development environment and distribution of code.  Where Smalltalk traditionally has a monolithic "system image" which comprises both the environment and the user's program, Python stores both standard modules and user modules in individual files which can easily be rearranged or distributed outside the system.  One consequence is that there is more than one option for attaching a Graphical User Interface (GUI) to a Python program, since the GUI is not built into the system.
  • 27. Common Lisp and Scheme  These languages are close to Python in their dynamic semantics, but so different in their approach to syntax that a comparison becomes almost a religious argument: is Lisp's lack of syntax an advantage or a disadvantage? It should be noted that Python has introspective capabilities similar to those of Lisp, and Python programs can construct and execute program fragments on the fly.  Usually, real-world properties are decisive: Common Lisp is big (in every sense), and the Scheme world is fragmented between many incompatible versions, where Python has a single, free, compact implementation.
  • 28.
  • 29. Java  Python programs are generally expected to run slower than Java programs, but they also take much less time to develop.  Python programs are typically 3-5 times shorter than equivalent Java programs.This difference can be attributed to Python's built-in high-level data types and its dynamic typing.  For example, a Python programmer wastes no time declaring the types of arguments or variables, and Python's powerful polymorphic list and dictionary types, for which rich syntactic support is built straight into the language, find a use in almost every Python program.  Because of the run-time typing, Python's run time must work harder than Java's. For example, when evaluating the expression a+b, it must first inspect the objects a and b to find out their type, which is not known at compile time.  It then invokes the appropriate addition operation, which may be an overloaded user-defined method.
  • 30. C++  Almost everything said for Java also applies forC++, just more so: where Python code is typically 3-5 times shorter than equivalent Java code, it is often 5-10 times shorter than equivalent C++ code! Anecdotal evidence suggests that one Python programmer can finish in two months what two C++ programmers can't complete in a year.  Python shines as a glue language, used to combine components written in C++.
  • 31. Python:-  Python is newer.  It is loosly typed language.  It's runtime is slow.  It's code are faster to write.  It is really fun to write with its easier, and its rich features.  As python is gaining levels really fast. C:-  C is old.  It is pretty strictly typed language.  It's runtime is extremely fast.  It's code are slow to write.  C is "richer" and becaust its "older", its used in more apps, and in the open source community its more helpful.  Since, kernel and many basic commands are made in c.
  • 32.
  • 33. Advantages  The language doesn't provide a rich syntax, which is really helpful.  The idea behind that is to keep you thinking about the business rules of your application and not to spend time trying to figure out what command you should use.  It is also true that Python is interactive, portable, easy to learn, easy to use, and a serious language.
  • 34.  Furthermore, it provides dynamic semantics and rapid prototyping capabilities.  Python is largely known as a glue language that connects existing components.  It is embeddable in applications from other languages (C/C++, Java, and so on), and it is also possible to add new modules to Python, extending its core vocabulary.  The next couple of paragraphs list and explain why Python is a cool programming language and what things make Python more flexible than other languages.
  • 35. Readability  Python's syntax is clear and readable.  The way Python's syntax is organized imposes some order to programmers.  Experts and beginners can easily understand the code and everyone can become productive in Python very quickly.
  • 36. It Is Simple to Get Support  The Python community always provides support to Python users.  As we already know, Python code is freely available for everyone.  Therefore, thousands of developers worldwide are working hard to find bugs and create patches to fix those bugs.
  • 37. Fast to Learn  The language is very easy to learn because its source code resembles pseudo code.  It doesn't ask for long and strange lines of code.  Therefore, less training is a direct result.  Companies don't need to spend much time to have their programmers coding in Python.  Once you start learning Python, you can do useful coding almost immediately.  And after some practice, your productivity will suddenly increase.  You can design a high-level, object-oriented programming code in a friendly and interpreted Python environment.  This feature works great for small tasks.
  • 38. Fast to Code  Python provides fast feedback in several ways.  First, the programmer can skip many tasks that other languages require him to take.  Therefore, it reduces both the cost of program maintenance and the development time.
  • 39. Reusability  Python encourages program reusability by implementing modules and packages.  A large set of modules has already been developed and is provided asThe Standard Python Library, which is part of the Python distribution.  You can easily share functionality between your programs by breaking the programs into modules, and reusing the modules as components of other programs.
  • 40. Disadvantages  Python isn't the best for memory intensive tasks.  Python is interpreted language & is slow compared to C/C++ or java.  Python not a great choice for a high-graphic 3d game that takes up a lot of CPU.  Python is evolving continuously, with constant evolution there is little substantial documentation available for the language
  • 42.  Python is an easy to learn and powerful programming language as it is known in common parlance, there is nevertheless need of a good introduction and tutorial on the Python language.