Python Seminar
Python Seminar
Python
By Vishal Bhole
MCA III
(Roll No-06)
1.What is Python......?
2.Program VS Scripting language
3.History of Python
4.Scope of Python
5.Who use Python today
6.Installing Python
7.Python code Execution
8.List
9.Tuple
10.Dictionary
11.Pandas
12.Application of Python
What is Python...?
1) A Script is interpreted.
1) A Program is executed.
2) A Program in general, is
z 2) Ascripting
Script is code written in a
language is nothing but a
sequence of instruction written type of programming language in
so that computer can perform which we can write code to control
certain task. another software application.
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
Scope of Python
• Science
- Bioinfonnatics
• System Administration
-Unix
-Web logic
-Web sphere
• Web Application Development -CGI
-Jython — Servlets
• Testing scripts
Installing Python
• Windows Installation
• Open a Web browser and go to
http://www.python.org/download/
• Follow the link for the Windows installer python-XYZ.msi file
where XYZ is the version you need to install.
• To use this installer python-XYZ.msi, the Windows system
must support Microsoft Installer 2.0. Save the installer file to
your local machine and then run it to find out if your machine
supports MSI.
• Run the downloaded file. This brings up the Python install
wizard, which is really easy to use. Just accept the default
settings, wait until the install is finished, and you are done.
• After installing the python version 3.6 , go to start
menu then click on python 3.6 in that one you can
select python (Command line) it is prompt with >>>>
Running Python
>>> x=[1,'hello',(3+2j)]
>>> x[2]
(3+2j)
>>> x[0:2]
[1, 'hello']
Update and Delete Lists
• The method append modifies the list and return
None
• List addition (+) return a new list.
• To remove a list element we can use deleting or
remove( ) method.
Tuples
• Tuples are immutable versions of lists
• One strange point is the format to make a tuple
with one element:
“, is needed to differentiate from the
mathematical expression
>>>> x=(1,2,3)
>>>> x[1:]
(2,3)
>>>> y=(2,)
(2,)
Update Tuples
• Tuples are immutable which means you cannot
update or change the values of tuple elements.
• You are able to take portions of existing tuples
to create new tuples as the following example
demonstrates:
Delete Tuples
• Removing individual tuple elements is not
possible. There is, of course, nothing wrong
with putting together another tuple with the
undesired elements discarded.
• To explicitly remove an entire tuple, just use the
del statement.
Dictionaries
• A set of key-value pairs.
• Dictionaries are mutable.
>>>> d={1:’hello’,’two’:45,’blah’:[1,2,3])
>>>>print ( d. get(‘blah’))
[1,2,3]
>>>> d={1:’hello’,’two’:45,’blah’:[1,2,3])
>>>>print ( d. get(‘two’))
45
Update and Delete Dictionaries
• Entries can be changed by assigning to that
entry.
• The del method delete an element from a
dictionary.
Python Pandas
• Pandas is an open-source Python Library
providing high-performance data manipulation
and analysis tool using its powerful data
structures.
• Using Pandas, we can accomplish five typical
steps in the processing and analysis of data,
regardless of the origin of data — load, prepare,
manipulate, model, and analyze.
• Python with Pandas is used in a wide range of
fields including academic and commercial
domains including finance, economics,
Statistics, analytics, etc.
Key Features of Pandas
• Fast and efficient Data Frame object with
default and customized indexing.
• Data alignment and integrated handling of
missing data.
• Reshaping and pivoting of date sets.
• Columns from a data structure can be deleted
or inserted.
• High performance merging and joining of data.
• Time Series functionality
Application Of Python
• Web Applications
• Desktop GUI Applications
• Software Development
• Scientific and Numeric
• Business Applications
• Console Based Application
• Audio or Video based Applications
• 3D CAD Applications
• Enterprise Applications
• Applications for Images
Thank You!