Python Ppt

Download as pptx, pdf, or txt
Download as pptx, pdf, or txt
You are on page 1of 38

SeminarPpt.

com

Seminar
On
Python

Submitted to: Submitted By


Seminarppt.com Seminarppt.com
Table of Content
Introduction
What is Python
History and Timelines
Scope and Why it was Created
Installation
Hello World
Applications
Advantages and Disadvantages
Conclusion
Introduction
Most recent popular (scripting/extension)
language
 although origin ~1991
heritage: teaching language (ABC)
 Tcl: shell
 perl: string (regex) processing

object-oriented
 rather than add-on (OOTcl)
What is Python
Python is an interpreted, object-oriented, high-level
programming language with dynamic semantics. Its
high-level built in data structures, combined with
dynamic typing and dynamic binding, make it very
attractive for Rapid Application Development, as well
as for use as a scripting or glue language to connect
existing components together. Python's simple, easy to
learn syntax emphasizes readability and therefore
reduces the cost of program maintenance.
History
Invented in the Netherlands, early 90s by Guido van
Rossum
Python was conceived in the late 1980s and its
implementation was started in December 1989
Guido Van Rossum is fan of ‘Monty Python’s Flying
Circus’, this is a famous TV show in Netherlands
Named after Monty Python
Open sourced from the beginning
Timeline
Python born, name picked - Dec 1989
 By Guido van Rossum, now at GOOGLE
First public release (USENET) - Feb 1991
python.org website - 1996 or 1997
2.0 released - 2000
Python Software Foundation - 2001

2.4 released - 2004
2.5 released – 2006
Current version: 2.6.x
Differences between program and
scripting language

"A scripting language is a type A programming language is a


of programming language combination of words and
which does not require explicit symbols that is used to write
compilation step, and it is programs, and these programs
designed for a runtime system are set of instructions.
to automate the execution of Therefore, we can say, "A
tasks." For example, a programming language is a
JavaScript program is not way by which programmers
needed to be compiled before communicate with computers
we run it. These are also known through the set of instructions
as very high-level programming known as code/program."
languages because of working at
a high level of abstraction.
Why was python created?
"My original motivation for creating Python was the
perceived need for a higher level language in the
Amoeba [Operating Systems] project. I realized that
the development of system administration utilities in
C was taking too long. Moreover, doing these things
in the Bourne shell wouldn't work for a variety of
reasons. ... So, there was a need for a language that
would bridge the gap between C and the shell” -
Guido Van Rossum
Scope of Python
• Science
 Bioinformatics
System Administration
 Unix
 Web logic
 Web sphere
Web Application Development
 CGI
 Jython - Servlets
Testing scripts
Language properties
Everything is an object
Modules, classes, functions
Exception handling
Dynamic typing, polymorphism
Static scoping
Operator overloading
Indentation for block structure
Why learn python?
Fun-to-use "Scripting language"
Object-oriented
 Highly educational
Very easy to learn
Powerful, scalable, easy to maintain
 high productivity
 Lots of libraries
Glue language
 Interactive front-end for FORTRAN/C/C++ code
How to Install Python
(Environment Set-up)
In order to become Python developer, the first step is to
learn how to install or update Python on a local machine
or computer. In this tutorial, we will discuss the
installation of Python on various operating systems.
Installation on Windows
Installation on Mac
Installation on Windows
Visit the link https://www.python.org/downloads/ to download the
latest release of Python. When we click on the above link, it will bring
us the following page.
Step - 1: Select the Python's version to download.
Installation on Windows
Step - 2: Click on the Install Now
Double-click the executable file, which is downloaded; the following
window will open. Select Customize installation and proceed. Click on
the Add Path check box, it will set the Python path automatically.
Installation on Windows
Step - 3 Installation in Process
Installation on Windows
Now, try to run python on the command prompt. Type the
command python -version in case of python3.
Installation on Mac
1. Checking python's version on the system
We can check which version of the Python is currently installed on
our system. Generally, Python 2.7 is installed by default.

It shows Python 2.7.10 is installed on the computer which is


quite often.
Installation on Mac
2) Download Python 3.6.3
In order to install Python 3.6.3, we must download the latest
version from its official website
https://www.python.org/downloads/. The file is downloaded
in .pkg format which can be directly installed by using
Installer command.
3) Install Python 3.6.3
Since the downloaded file already is in .pkg format hence no
mounting is required and We can use installer command to
install Python 3.6.3.
Installation on Mac
Let's see how can we do it.

Since The installer is used with super user permissions hence


sudo forces terminal to prompt the user to fill the admin
password. The process installs the Python 3.6.3 to the root
directory which is mentioned with the target option.
Installation on Mac
4) Verify Python3
To check which Python version is installed on the machine, we can
use python -version command. Since by default installed version
is Python 2.7.10 hence it shows python 2.7.10. but it gives us
flexibility to check the version of Python 3 on our computer.
Let's see how can we use python 3 to check which version of
python 3 is running.

$ python -version
Installation on Mac
5) Working on Python's script mode
To work on Python command line, we simply type python3 on the
terminal. Python shell open where we can run Python
statements such as print statements as we did here.

To run a Python file (.py) on the terminal, we simply type the file
name and the file will be interpreted.
Well, we have installed Python3 on our MacOS.
Hello World: Create your First
Python Program
Creating First Program
Step 1) Open PyCharm Editor. You can see the introductory screen
for PyCharm. To create a new project, click on “Create New
Project”.
Hello World: Create your First
Python Program
Step 2) You will need to select a location.
You can select the location where you want the project to
be created. If you don’t want to change location than keep
it as it is but at least change the name from “untitled” to
something more meaningful, like “FirstProject”.
PyCharm should have found the Python interpreter you
installed earlier.
Next Click the “Create” Button.
Hello World: Create your First
Python Program
Hello World: Create your First
Python Program

Step 3) Now Go up to the “File” menu and select “New”. Next,


select “Python File”.
Hello World: Create your First
Python Program

Step 4) A new pop up will appear. Now type the name of the file
you want (Here we give “HelloWorld”) and hit “OK”.
Hello World: Create your First
Python Program

Step 5) Now type a simple program – print (‘Hello World!’).


Hello World: Create your First
Python Program

Step 6) Now Go up to the “Run” menu and select “Run” to run


your program.
Hello World: Create your First
Python Program

Step 7) You can see the output of your program at the bottom of
the screen.
Hello World: Create your First
Python Program

Step 8) Don’t worry if you don’t have Pycharm Editor installed,


you can still run the code from the command prompt. Enter the
correct path of a file in command prompt to run the program.
Hello World: Create your First
Python Program

The output of the code would be

Step 9) If you are still not able to run the program, we have
Python Editor for you.
Applications of Python
GUI based desktop applications
Graphic design, image processing applications, Games, and
Scientific/ computational Applications
Web frameworks and applications
Enterprise and Business applications
Operating Systems
Education
Database Access
Language Development
Software Development
What are the top Python IDEs?
1. Spyder
2. PyCharm
3. Thonny
4. Atom
5. Jupyter
6. Komodo
7. Wingware
Advantages of Python
Presence of third-party modules
Extensive support libraries(NumPy for numerical calculations,
Pandas for data analytics etc)
Open source and community development
Versatile, Easy to read, learn and write
User-friendly data structures
High-level language
Dynamically typed language(No need to mention data type based
on the value assigned, it takes data type)
Object-oriented language
Disadvantages of Python
Lack of Standardized Design Patterns
No Built-In Database Management System
Not Well Suited For Large Applications
Poor Security Features
Weak in Mobile Computing
Trouble in Using Other Languages
Gets Slow in Speed
Conclusion

In conclusion, Python is a popular


programming language. It's used for
many things like web development, data
science and scientific computing. It's easy
to learn and has many resources available
References

• Wikipedia.org
• Google.com
• Seminarppt.com
• Studymafia.org
Thanks
To
SeminarPpt.Com

You might also like