You are on page 1of 29

Introduction

beheshtraya@gmail.com

amir.sahebfosoul@gmail.com

What is Python?
A programming language
o High-level
o Interpreted
o Open Source
o General purpose
o Object-oriented
o Easy to interface with C/C++/Java/Fortran
o Great interactive environment
o

Python Introduction

Fall 2013

Why Python?

There is no best programming language


o Its up to your needs

Python Introduction

Fall 2013

History
First Implementation on 1989
by Guido van Rossum
Python 2.0 released at 2000
Python 3.0 released at 2008

Python Introduction

Fall 2013

Progress
First in CWI in Science Park
Amsterdam.
2005 2012 in Google
Present at Dropbox

Python Introduction

Fall 2013

Code Features
emphasize code readability:
o Beautiful is better than ugly.
o Explicit is better than implicit.

o Simple is better than complex.


o Complex is better than complicated.
o Readability counts.

print(Hello World !")

Python Introduction

Fall 2013

Implementations

CPython

PyPy

Jython

IronPython

Cython

PyS60

Pyjamas

Shed Skin

Python Introduction

Fall 2013

CPython
Main reference implementation
With large libraries written in C & Python
Support by almost every OS
o
o
o
o
o
o

Windows
Linux
Mac OS X
Apple iOS
Android

Python Introduction

Fall 2013

PyPy
Alternate general implementation
Faster
Better memory usage
Compatible with popular libraries

Python Introduction

Fall 2013

Jython
Written in Java

Can use Java class and modules

Include most of the python standard library

Brings Java to Python

Python Introduction

Fall 2013

IronPython
written entirely in C#

Employ .NET framework

First Developed by Microsoft

Brings .NET classes into Python

Python Introduction

Fall 2013

Cython

Can use C/C++ modules & function inside python

written in Python

Is superset of python

Brings C/C++ into Python

Python Introduction

Fall 2013

PyS60
Developed by Nokia
Python shell inside S60 device
Brings Python into Nokia S60

Python Introduction

Fall 2013

Pyjamas (Pyjs)
Web & desktop application framework

Generate JavaScript from Python

Base on Google web toolkit

Brings JavaScript in Python

Python Introduction

Fall 2013

Shed Skin
Compiler for Python
Generate C++ code
Brings Python in C++

Python Introduction

Fall 2013

Organizational Use
Google
Yahoo
NASA
CERN

Python Introduction

Fall 2013

YouTube
Gmail (+java)

Google Groups
Google Maps
Parts of Search Engine

Python Introduction

Fall 2013

Yahoo Groups
Yahoo Maps

Python Introduction

Fall 2013

Speed up Coding Process


Make Designing Workflow Easier

Python Introduction

Fall 2013

Used in Complex Mathematic & Physics Calculation

Python Introduction

Fall 2013

Applications
Scientific
Games

Network

Python Introduction

Fall 2013

Scientific
Bioinformatics
o AstraZeneca (Drug Discovery)

GIS and Mapping


o The Blind Audio Tactile
mapping System

Simulation
o Carmanah Lights the Way

Python Introduction

Fall 2013

Games
Civilization IV
o Major parts of the interface, map
generation, and scripted events are
written entirely in Python, and can
be customized.

Battlefield
o Uses Python for all of its addons and a lot
of its functionality

Python Introduction

Fall 2013

Network
Bit Torrent
D-Link Australia
o Control Firmware Updates

Mozilla Website (with Django)

Socket Programming

Python Introduction

Fall 2013

PyEverything
Libraries
Web framework

Python Introduction

Fall 2013

Libraries
Huge Standard Library

Lots of third-party libraries

Python Introduction

Fall 2013

Web-Frameworks

Django
Pylons
Pyramid
TurboGears
Web2py
Tornado
Flask
Zope

Python Introduction

Fall 2013

Our Project
download.iut.ac.ir

IUT File Sharing System


- Completely written in Python
- Powered by Django

Python Introduction

Fall 2013

Python Introduction

Fall 2013

You might also like