SlideShare a Scribd company logo
What is Python? Powerful,
intuitive programming
http://www.asterixsolution.com/python-training-in-mumbai.html
• Python is easy to learn and use
The number of features in the language itself is modest, requiring
relatively little investment of time or effort to produce your first
programs. The Python syntax is designed to be readable and
straightforward. This simplicity makes Python an ideal teaching
language, and it lets newcomers pick it up quickly. As a result,
developers spend more time thinking about the problem they’re trying
to solve and less time thinking about language complexities or
deciphering code left by others.
• Python is broadly adopted and supported
Python is both popular and widely used, as the high rankings in surveys
like the Tiobe Index and the large number of GitHub projects using
Python attest. Python runs on every major operating system and
platform, and most minor ones too. Many major libraries and API-
powered services have Python bindings or wrappers, letting Python
interface freely with those services or directly use those libraries.
• Python is not a “toy” language
Even though scripting and automation cover a large chunk of Python’s use
cases (more on that later), Python is also used to build professional-
quality software, both as standalone applications and as web services.
Python may not be the fastest language, but what it lacks in speed, it
makes up for in versatility.
• Python keeps moving forward
Each revision of the Python language adds useful new features to keep
pace with modern software development practices. Asynchronous
operations and coroutines, for instance, are now standard parts of the
language, making it easier to write Python apps that perform concurrent
processing.
• What Python is used for
The most basic use case for Python is as a scripting and automation
language. Python isn’t just a replacement for shell scripts or batch files;
it is also used to automate interactions with web browsers or
application GUIs or to do system provisioning and configuration in tools
such as Ansible and Salt. But scripting and automation represent only
the tip of the iceberg with Python.
• General application programming with Python
You can create both command-line and cross-platform GUI applications
with Python and deploy them as self-contained executables. Python
doesn’t have the native ability to generate a standalone binary from a
script, but third-party packages like cx_Freeze and PyInstaller can be
used to accomplish that.
• Data science and machine learning with Python
Sophisticated data analysis has become one of fastest-moving areas of
IT and one of Python’s star use cases. The vast majority of the libraries
used for data science or machine learning have Python interfaces,
making the language the most popular high-level command interface to
for machine learning libraries and other numerical algorithms.
• Web services and RESTful APIs in Python
Python’s native libraries and third-party web frameworks provide fast and
convenient ways to create everything from simple REST APIs in a few lines of
code to full-blown, data-driven sites. Python’s latest versions have strong
support for asynchronous operations, letting sites handle tens of thousands
of requests per second with the right libraries.
• Metaprogramming and code generation in Python
In Python, everything in the language is an object, including Python modules
and libraries themselves. This lets Python work as a highly efficient code
generator, making it possible to write applications that manipulate their own
functions and have the kind of extensibility that would be difficult or
impossible to pull off in other languages.
• “Glue code” in Python
• Python is often described as a “glue language,” meaning it can let disparate code (typically libraries with
C language interfaces) interoperate. Its use in data science and machine learning is in this vein, but that’s
just one incarnation of the general idea. If you have applications or program domains that you would like
to hitch up, but cannot talk to each other directly, you can use Python to connect them.
• Where Python falls short
• Also worth noting are the sorts of tasks Python is not well-suited for.
• Python is a high-level language, so it’s not suitable for system-level programming—device drivers or OS
kernels are out of the picture.
• It’s also not ideal for situations that call for cross-platform standalone binaries. You could build a
standalone Python app for Windows, MacOS, and Linux, but not elegantly or simply.
• Finally, Python is not the best choice when speed is an absolute priority in every aspect of the
application. For that, you’re better off with C/C++ or another language of that caliber.
• How Python makes programming simple
• Python’s syntax is meant to be readable and clean, with little pretense. A standard “hello
world” in Python 3.x is nothing more than:
• print(“Hello world!”)
• Python provides many syntactical elements to concisely express many common program
flows. Consider a sample program for reading lines from a text file into a list object, stripping
each line of its terminating newline character along the way:
• with open(‘myfile.txt’) as my_file:
• file_lines = [x.rstrip(‘n’) for x in my_file]
• The with/as construction is a context manager, which provides an efficient way to instantiate
an object for a block of code and then dispose of it outside that block. In this case, the object
is my_file, instantiated with the open() function. This takes the place of several lines of
boilerplate to open the file, read individual lines from it, then close it up.
• The [x … for x in my_file] construction is another Python idiosyncrasy, the
list comprehension. It lets an item that contains other items (here, my_file
and the lines it contains) be iterated through, and it lets each iterated
element (that is, each x) be processed and automatically appended to a list.
• You could write such a thing as a formal for… loop in Python, much as you
would in another language. The point is that Python has a way to
economically express things like loops that iterate over multiple objects
and perform a simple operation on each element in the loop, or to work
with things that require explicit instantiation and disposal.
• Constructions like this let Python developers balance terseness and
readability.
• Python’s libraries
• The success of Python rests on a rich ecosystem of first- and third-party software.
Python benefits from both a strong standard library and a generous assortment
of easily obtained and readily used libraries from third-party developers. Python
has been enriched by decades of expansion and contribution.
• Python’s standard library provides modules for common programming tasks—
math, string handling, file and directory access, networking, asynchronous
operations, threading, multiprocess management, and so on. But it also includes
modules that manage common, high-level programming tasks needed by modern
applications: reading and writing structured file formats like JSON and XML,
manipulating compressed files, working with internet protocols and data formats
(webpages, URLs, email). Most any external code that exposes a C-compatible
foreign function interface can be accessed with Python’s ctypes module.
• Python 2 vs. Python 3
• Python is available in two versions, which are different enough to trip up many new
users. Python 2.x, the older “legacy” branch, will continue to be supported (that is,
receive official updates) through 2020, and it might persist unofficially after that. Python
3.x, the current and future incarnation of the language, has many useful and important
features not found in Python 2.x, such as new syntax features (e.g., the “walrus
operator”), better concurrency controls, and a more efficient interpreter.
• Python 3 adoption was slowed for the longest time by the relative lack of third-party
library support. Many Python libraries supported only Python 2, making it difficult to
switch. But over the last couple of years, the number of libraries supporting only Python
2 has dwindled; all of the most popular libraries are now compatible with both Python 2
and Python 3. Today, Python 3 is the best choice for new projects; there is no reason to
pick Python 2 unless you have no choice. If you are stuck with Python 2, you have various
strategies at your disposal.
• Python’s compromises
• Like C#, Java, and Go, Python has garbage-collected memory management,
meaning the programmer doesn’t have to implement code to track and release
objects. Normally, garbage collection happens automatically in the background,
but if that poses a performance problem, you can trigger it manually or disable it
entirely, or declare whole regions of objects exempt from garbage collection as a
performance enhancement.
• An important aspect of Python is its dynamism. Everything in the language,
including functions and modules themselves, are handled as objects. This comes
at the expense of speed (more on that later), but makes it far easier to write high-
level code. Developers can perform complex object manipulations with only a few
instructions, and even treat parts of an application as abstractions that can be
altered if needed.

More Related Content

What's hot

Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
Mayank Sharma
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
Shubham Yadav
 
Python and data analytics
Python and data analyticsPython and data analytics
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
Shivam Gupta
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
Rr
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
Shree M.L.Kakadiya MCA mahila college, Amreli
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
Ahmet Bulut
 
Python presentation
Python presentationPython presentation
Python presentation
gaganapponix
 
Python – The Fastest Growing Programming Language
Python – The Fastest Growing Programming LanguagePython – The Fastest Growing Programming Language
Python – The Fastest Growing Programming Language
IRJET Journal
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
FEG
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 course
HimanshuPanwar38
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
DrMohammed Qassim
 
Why Python?
Why Python?Why Python?
Why Python?
Adam Pah
 
Python
PythonPython
Python
GAnkitgupta
 
Python for the Mobile and Web
Python for the Mobile and WebPython for the Mobile and Web
Python for the Mobile and Web
Derek Kiong
 
Python for All
Python for All Python for All
Python for All
Pragya Goyal
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
william john
 
Julia vs Python 2020
Julia vs Python 2020Julia vs Python 2020
Julia vs Python 2020
Devathon
 
Introduction to python
 Introduction to python Introduction to python
Introduction to python
Learnbay Datascience
 
python for linguists
python for linguistspython for linguists
python for linguists
shukaihsieh
 

What's hot (20)

Python presentation by Monu Sharma
Python presentation by Monu SharmaPython presentation by Monu Sharma
Python presentation by Monu Sharma
 
summer training report on python
summer training report on pythonsummer training report on python
summer training report on python
 
Python and data analytics
Python and data analyticsPython and data analytics
Python and data analytics
 
Seminar report On Python
Seminar report On PythonSeminar report On Python
Seminar report On Python
 
Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)Fantasy cricket game using python(intershala project)
Fantasy cricket game using python(intershala project)
 
Research paper on python by Rj
Research paper on python by RjResearch paper on python by Rj
Research paper on python by Rj
 
Programming with Python: Week 1
Programming with Python: Week 1Programming with Python: Week 1
Programming with Python: Week 1
 
Python presentation
Python presentationPython presentation
Python presentation
 
Python – The Fastest Growing Programming Language
Python – The Fastest Growing Programming LanguagePython – The Fastest Growing Programming Language
Python – The Fastest Growing Programming Language
 
Python indroduction
Python indroductionPython indroduction
Python indroduction
 
Seminar report on python 3 course
Seminar report on python 3 courseSeminar report on python 3 course
Seminar report on python 3 course
 
Introduction to Python
Introduction to PythonIntroduction to Python
Introduction to Python
 
Why Python?
Why Python?Why Python?
Why Python?
 
Python
PythonPython
Python
 
Python for the Mobile and Web
Python for the Mobile and WebPython for the Mobile and Web
Python for the Mobile and Web
 
Python for All
Python for All Python for All
Python for All
 
Presentation on java
Presentation on javaPresentation on java
Presentation on java
 
Julia vs Python 2020
Julia vs Python 2020Julia vs Python 2020
Julia vs Python 2020
 
Introduction to python
 Introduction to python Introduction to python
Introduction to python
 
python for linguists
python for linguistspython for linguists
python for linguists
 

Similar to What is python

Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
Dhana malar
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1Kanchilug
 
Python
PythonPython
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
nagendrasai12
 
PYTHON UNIT 1
PYTHON UNIT 1PYTHON UNIT 1
PYTHON UNIT 1
nagendrasai12
 
PYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONALPYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONAL
auramarketings
 
PYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONALPYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONAL
auramarketings
 
Presentation (1).pdf
Presentation (1).pdfPresentation (1).pdf
Presentation (1).pdf
naganeparth06
 
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
Ramanamurthy Banda
 
Introducing Python Tutorial.pdf
Introducing Python Tutorial.pdfIntroducing Python Tutorial.pdf
Introducing Python Tutorial.pdf
rubaabNaseer
 
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
Mindfire LLC
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming LanguageLaxman Puri
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
abclara
 
Python slide basic to advanced english tutorial
Python slide basic to advanced english tutorialPython slide basic to advanced english tutorial
Python slide basic to advanced english tutorial
masukmia.com
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
percivalfernandez2
 
7 Benefits of Using Python Programming Language.pptx
7 Benefits of Using Python Programming Language.pptx7 Benefits of Using Python Programming Language.pptx
7 Benefits of Using Python Programming Language.pptx
Surendra Singh
 
Advantage of Phyton Language for Development.pdf
Advantage of Phyton Language for Development.pdfAdvantage of Phyton Language for Development.pdf
Advantage of Phyton Language for Development.pdf
vegasystemsusa
 
Python Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxPython Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docx
AbhinavSharma309481
 

Similar to What is python (20)

Introduction to Python Programming Basics
Introduction  to  Python  Programming BasicsIntroduction  to  Python  Programming Basics
Introduction to Python Programming Basics
 
Python quick guide1
Python quick guide1Python quick guide1
Python quick guide1
 
Python
PythonPython
Python
 
Python programming ppt.pptx
Python programming ppt.pptxPython programming ppt.pptx
Python programming ppt.pptx
 
PYTHON UNIT 1
PYTHON UNIT 1PYTHON UNIT 1
PYTHON UNIT 1
 
PYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONALPYTHION IN DETAIL INFORMATION EDUCATIONAL
PYTHION IN DETAIL INFORMATION EDUCATIONAL
 
PYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONALPYTHON IN DETAIL INFORMATION EDUCATIONAL
PYTHON IN DETAIL INFORMATION EDUCATIONAL
 
Presentation (1).pdf
Presentation (1).pdfPresentation (1).pdf
Presentation (1).pdf
 
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
 
Introducing Python Tutorial.pdf
Introducing Python Tutorial.pdfIntroducing Python Tutorial.pdf
Introducing Python Tutorial.pdf
 
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
 
Python Programming Language
Python Programming LanguagePython Programming Language
Python Programming Language
 
Python.pptx
Python.pptxPython.pptx
Python.pptx
 
Python slide basic to advanced english tutorial
Python slide basic to advanced english tutorialPython slide basic to advanced english tutorial
Python slide basic to advanced english tutorial
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 
Python Programming Part 1.pdf
Python Programming Part 1.pdfPython Programming Part 1.pdf
Python Programming Part 1.pdf
 
7 Benefits of Using Python Programming Language.pptx
7 Benefits of Using Python Programming Language.pptx7 Benefits of Using Python Programming Language.pptx
7 Benefits of Using Python Programming Language.pptx
 
Advantage of Phyton Language for Development.pdf
Advantage of Phyton Language for Development.pdfAdvantage of Phyton Language for Development.pdf
Advantage of Phyton Language for Development.pdf
 
Python Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docxPython Applications by The Knowledge Academy.docx
Python Applications by The Knowledge Academy.docx
 

More from faizrashid1995

Hadoop Training
Hadoop TrainingHadoop Training
Hadoop Training
faizrashid1995
 
Android Developer Training
Android Developer TrainingAndroid Developer Training
Android Developer Training
faizrashid1995
 
Android Developer Training
Android Developer TrainingAndroid Developer Training
Android Developer Training
faizrashid1995
 
Big data and apache hadoop adoption
Big data and apache hadoop adoptionBig data and apache hadoop adoption
Big data and apache hadoop adoption
faizrashid1995
 
What is hadoop
What is hadoopWhat is hadoop
What is hadoop
faizrashid1995
 
The mean stack
The mean stackThe mean stack
The mean stack
faizrashid1995
 
Big Data Courses In Mumbai
Big Data Courses In MumbaiBig Data Courses In Mumbai
Big Data Courses In Mumbai
faizrashid1995
 
Python Classes In Thane
Python Classes In ThanePython Classes In Thane
Python Classes In Thane
faizrashid1995
 
python classes in thane
python classes in thanepython classes in thane
python classes in thane
faizrashid1995
 
Hadoop training in mumbai
Hadoop training in mumbaiHadoop training in mumbai
Hadoop training in mumbai
faizrashid1995
 
Advanced java course
Advanced java courseAdvanced java course
Advanced java course
faizrashid1995
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbai
faizrashid1995
 

More from faizrashid1995 (12)

Hadoop Training
Hadoop TrainingHadoop Training
Hadoop Training
 
Android Developer Training
Android Developer TrainingAndroid Developer Training
Android Developer Training
 
Android Developer Training
Android Developer TrainingAndroid Developer Training
Android Developer Training
 
Big data and apache hadoop adoption
Big data and apache hadoop adoptionBig data and apache hadoop adoption
Big data and apache hadoop adoption
 
What is hadoop
What is hadoopWhat is hadoop
What is hadoop
 
The mean stack
The mean stackThe mean stack
The mean stack
 
Big Data Courses In Mumbai
Big Data Courses In MumbaiBig Data Courses In Mumbai
Big Data Courses In Mumbai
 
Python Classes In Thane
Python Classes In ThanePython Classes In Thane
Python Classes In Thane
 
python classes in thane
python classes in thanepython classes in thane
python classes in thane
 
Hadoop training in mumbai
Hadoop training in mumbaiHadoop training in mumbai
Hadoop training in mumbai
 
Advanced java course
Advanced java courseAdvanced java course
Advanced java course
 
android development training in mumbai
android development training in mumbaiandroid development training in mumbai
android development training in mumbai
 

Recently uploaded

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
Jisc
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
Jheel Barad
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
Peter Windle
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
CarlosHernanMontoyab2
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
Jean Carlos Nunes Paixão
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
Levi Shapiro
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
joachimlavalley1
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
TechSoup
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
beazzy04
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
DeeptiGupta154
 

Recently uploaded (20)

How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
Supporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptxSupporting (UKRI) OA monographs at Salford.pptx
Supporting (UKRI) OA monographs at Salford.pptx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Instructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptxInstructions for Submissions thorugh G- Classroom.pptx
Instructions for Submissions thorugh G- Classroom.pptx
 
A Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in EducationA Strategic Approach: GenAI in Education
A Strategic Approach: GenAI in Education
 
678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf678020731-Sumas-y-Restas-Para-Colorear.pdf
678020731-Sumas-y-Restas-Para-Colorear.pdf
 
Lapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdfLapbook sobre os Regimes Totalitários.pdf
Lapbook sobre os Regimes Totalitários.pdf
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
June 3, 2024 Anti-Semitism Letter Sent to MIT President Kornbluth and MIT Cor...
 
Additional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdfAdditional Benefits for Employee Website.pdf
Additional Benefits for Employee Website.pdf
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup   New Member Orientation and Q&A (May 2024).pdfWelcome to TechSoup   New Member Orientation and Q&A (May 2024).pdf
Welcome to TechSoup New Member Orientation and Q&A (May 2024).pdf
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345Sha'Carri Richardson Presentation 202345
Sha'Carri Richardson Presentation 202345
 
Overview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with MechanismOverview on Edible Vaccine: Pros & Cons with Mechanism
Overview on Edible Vaccine: Pros & Cons with Mechanism
 

What is python

  • 1. What is Python? Powerful, intuitive programming http://www.asterixsolution.com/python-training-in-mumbai.html
  • 2. • Python is easy to learn and use The number of features in the language itself is modest, requiring relatively little investment of time or effort to produce your first programs. The Python syntax is designed to be readable and straightforward. This simplicity makes Python an ideal teaching language, and it lets newcomers pick it up quickly. As a result, developers spend more time thinking about the problem they’re trying to solve and less time thinking about language complexities or deciphering code left by others.
  • 3. • Python is broadly adopted and supported Python is both popular and widely used, as the high rankings in surveys like the Tiobe Index and the large number of GitHub projects using Python attest. Python runs on every major operating system and platform, and most minor ones too. Many major libraries and API- powered services have Python bindings or wrappers, letting Python interface freely with those services or directly use those libraries.
  • 4. • Python is not a “toy” language Even though scripting and automation cover a large chunk of Python’s use cases (more on that later), Python is also used to build professional- quality software, both as standalone applications and as web services. Python may not be the fastest language, but what it lacks in speed, it makes up for in versatility. • Python keeps moving forward Each revision of the Python language adds useful new features to keep pace with modern software development practices. Asynchronous operations and coroutines, for instance, are now standard parts of the language, making it easier to write Python apps that perform concurrent processing.
  • 5. • What Python is used for The most basic use case for Python is as a scripting and automation language. Python isn’t just a replacement for shell scripts or batch files; it is also used to automate interactions with web browsers or application GUIs or to do system provisioning and configuration in tools such as Ansible and Salt. But scripting and automation represent only the tip of the iceberg with Python.
  • 6. • General application programming with Python You can create both command-line and cross-platform GUI applications with Python and deploy them as self-contained executables. Python doesn’t have the native ability to generate a standalone binary from a script, but third-party packages like cx_Freeze and PyInstaller can be used to accomplish that.
  • 7. • Data science and machine learning with Python Sophisticated data analysis has become one of fastest-moving areas of IT and one of Python’s star use cases. The vast majority of the libraries used for data science or machine learning have Python interfaces, making the language the most popular high-level command interface to for machine learning libraries and other numerical algorithms.
  • 8. • Web services and RESTful APIs in Python Python’s native libraries and third-party web frameworks provide fast and convenient ways to create everything from simple REST APIs in a few lines of code to full-blown, data-driven sites. Python’s latest versions have strong support for asynchronous operations, letting sites handle tens of thousands of requests per second with the right libraries. • Metaprogramming and code generation in Python In Python, everything in the language is an object, including Python modules and libraries themselves. This lets Python work as a highly efficient code generator, making it possible to write applications that manipulate their own functions and have the kind of extensibility that would be difficult or impossible to pull off in other languages.
  • 9. • “Glue code” in Python • Python is often described as a “glue language,” meaning it can let disparate code (typically libraries with C language interfaces) interoperate. Its use in data science and machine learning is in this vein, but that’s just one incarnation of the general idea. If you have applications or program domains that you would like to hitch up, but cannot talk to each other directly, you can use Python to connect them. • Where Python falls short • Also worth noting are the sorts of tasks Python is not well-suited for. • Python is a high-level language, so it’s not suitable for system-level programming—device drivers or OS kernels are out of the picture. • It’s also not ideal for situations that call for cross-platform standalone binaries. You could build a standalone Python app for Windows, MacOS, and Linux, but not elegantly or simply. • Finally, Python is not the best choice when speed is an absolute priority in every aspect of the application. For that, you’re better off with C/C++ or another language of that caliber.
  • 10. • How Python makes programming simple • Python’s syntax is meant to be readable and clean, with little pretense. A standard “hello world” in Python 3.x is nothing more than: • print(“Hello world!”) • Python provides many syntactical elements to concisely express many common program flows. Consider a sample program for reading lines from a text file into a list object, stripping each line of its terminating newline character along the way: • with open(‘myfile.txt’) as my_file: • file_lines = [x.rstrip(‘n’) for x in my_file] • The with/as construction is a context manager, which provides an efficient way to instantiate an object for a block of code and then dispose of it outside that block. In this case, the object is my_file, instantiated with the open() function. This takes the place of several lines of boilerplate to open the file, read individual lines from it, then close it up.
  • 11. • The [x … for x in my_file] construction is another Python idiosyncrasy, the list comprehension. It lets an item that contains other items (here, my_file and the lines it contains) be iterated through, and it lets each iterated element (that is, each x) be processed and automatically appended to a list. • You could write such a thing as a formal for… loop in Python, much as you would in another language. The point is that Python has a way to economically express things like loops that iterate over multiple objects and perform a simple operation on each element in the loop, or to work with things that require explicit instantiation and disposal. • Constructions like this let Python developers balance terseness and readability.
  • 12. • Python’s libraries • The success of Python rests on a rich ecosystem of first- and third-party software. Python benefits from both a strong standard library and a generous assortment of easily obtained and readily used libraries from third-party developers. Python has been enriched by decades of expansion and contribution. • Python’s standard library provides modules for common programming tasks— math, string handling, file and directory access, networking, asynchronous operations, threading, multiprocess management, and so on. But it also includes modules that manage common, high-level programming tasks needed by modern applications: reading and writing structured file formats like JSON and XML, manipulating compressed files, working with internet protocols and data formats (webpages, URLs, email). Most any external code that exposes a C-compatible foreign function interface can be accessed with Python’s ctypes module.
  • 13. • Python 2 vs. Python 3 • Python is available in two versions, which are different enough to trip up many new users. Python 2.x, the older “legacy” branch, will continue to be supported (that is, receive official updates) through 2020, and it might persist unofficially after that. Python 3.x, the current and future incarnation of the language, has many useful and important features not found in Python 2.x, such as new syntax features (e.g., the “walrus operator”), better concurrency controls, and a more efficient interpreter. • Python 3 adoption was slowed for the longest time by the relative lack of third-party library support. Many Python libraries supported only Python 2, making it difficult to switch. But over the last couple of years, the number of libraries supporting only Python 2 has dwindled; all of the most popular libraries are now compatible with both Python 2 and Python 3. Today, Python 3 is the best choice for new projects; there is no reason to pick Python 2 unless you have no choice. If you are stuck with Python 2, you have various strategies at your disposal.
  • 14. • Python’s compromises • Like C#, Java, and Go, Python has garbage-collected memory management, meaning the programmer doesn’t have to implement code to track and release objects. Normally, garbage collection happens automatically in the background, but if that poses a performance problem, you can trigger it manually or disable it entirely, or declare whole regions of objects exempt from garbage collection as a performance enhancement. • An important aspect of Python is its dynamism. Everything in the language, including functions and modules themselves, are handled as objects. This comes at the expense of speed (more on that later), but makes it far easier to write high- level code. Developers can perform complex object manipulations with only a few instructions, and even treat parts of an application as abstractions that can be altered if needed.