python easylearning guru

19
PYTHON

Upload: abhishekkumarsingh

Post on 02-Jun-2018

219 views

Category:

Documents


0 download

TRANSCRIPT

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 1/26

PYTHON

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 2/26

 Agenda

● What is Python?

● Gems of Python

● Python's users

● Scope of Python

Major uses of Python● Why Python

● Getting started with Python

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 3/26

What is Python?

Python is a powerful multi paradigm computer programmin

optimized for programmer productivity, code readability, anquality.

Guido Van RossumSource code

GNU GeneraPython is named after famous British

comedy group

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 4/26

Python: a Complete Language

Python providease of us

Language , a

advance

engineering

found in com

which makes

large-scale

pro

Compiled languageScripting language

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 5/26

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 6/26

Portable

Python compiles and runs on every major platform currently in use. 

Python can be used on 21 different operating systems and environments. 

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 7/26

Powerful

Python's toolset places it between traditional scripting languages (Tcl, Scheme and Pe

development languages ( C ,C++ and Java)

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 8/26

Mixable

Python prograbe easily gluecomponents wother languag

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 9/26

 Ease ofSyntax

Java Code to print “Hello World” : 

class Hello {

public static void main (String[] args)

{ System.out.println (“Hello, world.”); 

}

Python code to print “H

print “Hello, World” 

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 10/26

Big Names in Python's Users

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 11/26

Why Python?C C++ Java

Object oriented No Yes Yes

Functional No Yes No

Type safety Unsafe Unsafe Safe

Type expression Explicit Explicit Explicit

Type checking Static Static Static

Failsafe I/O No No Yes

Readability Difficult Difficult Difficult Learning Difficult Difficult Difficult

Language Programming Programming Programming

Length of code 5-10 times greater

than python

5-10 times greater

than python

3-5 times greater than

python

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 12/26

  Scope of Python

Python is mlanguage cuby surveys.

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 13/26

 Say

The grap

the job

differen

with Pyt

maximu

growth

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 14/26

Major uses of Python

Scientific and

numeric

programming

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 15/26

GUIs

Camelot provides components for building applications on top of Python, SQLAlchemy and Qt.

inspired by the Django admin interface

GTK+, or the GIMP Toolkit, is a multi-platform toolkit for creating graphical user

Offering a complete set of widgets, GTK+ is suitable for projects ranging from sm

toolsto complete application suites. 

Kivy is a Python library for development of multi-touch enabled media rich applications.

The aim is to allow for quick and easy interaction design and rapid prototyping, while making

your code reusable and deployable.

Tkinter has the advantage of being included with the Python standard library, m

most convenient and compatible toolkit to program with. 

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 16/26

 PyQt is a set of Python v2 and v3 bindings for Digia's Qt application framework and runs

on all platforms supported by Qt including Windows, MacOS/X and Linux.

pyjs is a Rich Internet Application (RIA) Development Platform for both W

With pyjs you can write your JavaScript-powered web applications entirel

wxPython is a GUI toolkit for the Python programming language. It allows Python

programmers to create programs with a robust, highly functional graphical user

interface, simply and easily

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 17/26

 

Numeric and Scientific Programming

>>>a[4,:4:]

array([[44,45]

[54,55]])

Scipy Stack Includes modules for linear algebra, optimization, integration,

special functions, signal and image processing, statistics, genetic

algorithms

Numerical Python adds a fast, compact, multid

facility to Python. creating and manipulating n

IPython is a command shell for interactive computing developed for the Python

programming language that offers enhanced introspection ,rich media, additional shell

syntax, tab completion and rich history.

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 18/26

 

Matplotlib : Matplotlib is a python 2D plotting library which produces

publication quality figures in a variety of hardcopy formats and interactive

environments across platforms.Like Pie charts,simple plots,Histograms etc.

Pandas:  pandas  is an open source, BSD-licensed

erformance, easy-to-use data structures and data

Python programming language. 

Numeric and scientific programming

SymPy  :SymPy is a Python library for symbolic mathematics. It is written entirely in

python and doesn’t need any external liberary.

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 19/26

 

Rapid Prototyping

Python is an ideal choice for prototyping because: 

It is Dynamically typed language: Python doesn't require you to

declare the data type of a variable. This lets you write a function that isgeneric enough to handle any kind of data.

Python has Rich Set of Data-Structures: Built-in support for lists,dictionaries, sets, etc. reduces the time involved in hunting for a library

that provides you those basic data-structures.

Python is Expressive and Succinct: The algorithms that operate on thedata-structures are intuitive and simple to use. The final code is morereadable than a pseudo code.

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 20/26

 Component Integration

It spans multiple platforms, middleware products, andapplication domains.

Python can fulfill an important integration role in the design of

large applications with a long life expectancy.

It allows a fast response to changes in user requirements that

require adapting the higher-level application logic without

changing the fundamental underlying components.

It also allows quick adaptation of the application to changes in

the underlying components.

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 21/26

Getting Started With Python

Print “helloworld” 

Print (“hello world”) 

If else structure

a = 10

b = 20

If a>b:

print(“a is greater”) 

else:print(“b is greater”) 

for loop

for x in ran

print(x

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 22/26

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 23/26

What we offer… 

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 24/26

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 25/26

8/10/2019 Python EasyLearning Guru

http://slidepdf.com/reader/full/python-easylearning-guru 26/26