Python Programming Tutorial by Easylearning Guru

Page 1

PYTHON


Agenda What is Python? ● Gems of Python ● Python's users ● Scope of Python ● Major uses of Python ● Why Python ● Getting started with Python ●


What is Python? Python is a powerful multi paradigm computer programming language, optimized for programmer productivity, code readability, and software quality.

Guido Van Rossum

Python is named after famous British comedy group

Source code is available under the GNU General Public License (GPL).


Python: a Complete Language

Scripting language

Compiled language

Python provides simplicity and ease of use of scripting Language , along with more advanced softwareengineering tools typically found in compiled languages which makes Python useful for large-scale development projects.


Features of Python


Portable Python compiles and runs on every major platform currently in use. Python can be used on 21 different operating systems and environments.


Powerful Python's toolset places it between traditional scripting development languages ( C ,C++ and Java)

languages (Tcl, Scheme and Perl) and systems


Mixable

Python programs can be easily glued to components written in other languages.


Ease of Syntax

Java Code to print Hello World :

Python code to print Hello World :

class Hello {

public static void main (String[] args) { System.out.println Hello, world. ; }

print Hello, World


Big Names in Python's Users


Why Python? C

C++

Java

Python

Object oriented

No

Yes

Yes

Yes

Functional

No

Yes

No

Yes

Type safety

Unsafe

Unsafe

Safe

Safe

Type expression

Explicit

Explicit

Explicit

Implicit

Type checking

Static

Static

Static

Dynamic

Failsafe I/O

No

No

Yes

Yes

Readability

Difficult

Difficult

Difficult

Easy

Learning

Difficult

Difficult

Difficult

Easy

Language

Programming

Programming

Programming

Programming and scripting

Length of code

5-10 times greater than python

5-10 times greater than python

3-5 times greater than python

Small and manageable codes


Scope of Python Python is most demanded language currently as shown by surveys.


What Job Trends Say The graph here shows

the job trends in different languages with Python having the maximum percentage growth.


Major uses of Python Scientific and numeric programming


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 interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off 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, making it the most convenient and compatible toolkit to program with.


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 Web and Desktop. With pyjs you can write your JavaScript-powered web applications entirely in Python.

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


Numeric and Scientific Programming Scipy Stack Includes modules for linear algebra, optimization, integration, special functions, signal and image processing, statistics, genetic algorithms

>>>a[4,:4:] array([[44,45] [54,55]])

Numerical Python adds a fast, compact, multidimensional array facility to Python. creating and manipulating numerical data

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.


Numeric and scientific programming 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 library providing higherformance, easy-to-use data structures and data analysis tools for the Python programming language.

SymPy :SymPy is a Python library for symbolic mathematics. It is written entirely in python and doesn’t need any external liberary.


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 is generic 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 the data-structures are intuitive and simple to use. The final code is more readable than a pseudo code.


Component Integration It spans multiple platforms, middleware products, and application 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.


Getting Started With Python Print hello world 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 range(10): print(x)



What we offer…




Thank you for watching the Live Demo for Hadoop. You can always contact us on:

Phone : +91 124 4763660 (India) Email : contact@easylearning.guru

Skype Id : easylearning.guru Website : www.easylearning.guru Your queries are always welcome.


Turn static files into dynamic content formats.

Create a flipbook
Issuu converts static files into: digital portfolios, online yearbooks, online catalogs, digital photo albums and more. Sign up and create your flipbook.