0% found this document useful (0 votes)
20 views26 pages

Python 2

This document provides an introduction to Python including that it is general purpose, interpreted, multi-paradigm, cross-platform, free, easy to use, expressive, readable, complete, garbage collected, dynamic typed, and mixable. It discusses Python's history, creator Guido van Rossum, major implementations like CPython, Jython, IronPython, and PyS60. It also covers Python releases, data types, syntax, OOP, IDLE, software applications, popularity, and references.

Uploaded by

Maziyar Shadab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views26 pages

Python 2

This document provides an introduction to Python including that it is general purpose, interpreted, multi-paradigm, cross-platform, free, easy to use, expressive, readable, complete, garbage collected, dynamic typed, and mixable. It discusses Python's history, creator Guido van Rossum, major implementations like CPython, Jython, IronPython, and PyS60. It also covers Python releases, data types, syntax, OOP, IDLE, software applications, popularity, and references.

Uploaded by

Maziyar Shadab
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 26

An Introduction to

A Presentation by : Maziyar Shadab


Python Is …
general-purpose

interpreted

multi-paradigm

cross-platform

free

easy to use

expressive

readable

complete –”batteries included”

garbage collected

dynamic typed

mixable
History

 It was released by its designer, Guido Van


Rossum, in February 1991 while working for
CWI
 Is a successor to the “ABC programming
language”
 Was named after the BBC comedy series
“Monty Python’s Flying Circus”
Creato
r

Guido Van Rossum


 Born in 1960 in the Netherlands
 Received a masters degree in mathematics and computer science from
the University of Amsterdam in 1982
 Joined Google in 2005
Major Implementations

• the mainstream Python


CPython implementaion

• compiles Python programs


Jython into Java bytecode

• run Python programs on the


IronPython .NET CLR

• a Python interpreter for the


PyS60 Series 60 mobile phones
Releases

 3.1.2 / March 21, 2010


 2.7 / July 3, 2010

 Backwards-Incompatible versions
 Major or “feature” releases
 Bugfix releases
Data Types
Type Description Syntax example

bool An immutable truth value False

complex An immutable complex number with real 3+2.7j


number and imaginary parts
dict A mutable group of key and value pairs {0: 'zero', 1: 'one'}

float An immutable floating point number 3.1415927


(system-defined precision)
int An immutable fixed precision number of 42
unlimited magnitude
list Mutable, can contain mixed types [4.0, 'string', True]

set, Unordered, contains no duplicates set([1, 2, 3, 5])


frozenset frozenset([1, 2, 3, 5])
str An immutable sequence of Unicode 'Wikipedia'
characters
tuple Immutable, can contain mixed types (4.0, 'string', True)
Data Types
Complex Numbers
Data Types
Dictionaries
Data Types
Sets & Frozensets
Data Types
Strings
Data Types
Lists
Data Types
Tuples
Syntax
simple example 1
Syntax
simple example 2
OOP
IDLE
an IDE for Python

Features :
 coded in 100% pure Python, using the tkinter GUI toolkit
 cross-platform: works on Windows and Unix
 multi-window text editor with multiple undo, Python
colorizing and many other features, e.g. smart indent and call
tips
 Python shell window (interactive interpreter)
 debugger (not complete, but you can set breakpoints, view
and step)
Python Software
Applications (Part 1(

Decibel Audio Player


Python Software
Applications (Part 2(
Python Software
Video Games(Part 1)
Python Software
Video Games(Part 2)
Python Software
Video Games(Part 3)
Python Software
Embedded as a scripting language
Python Software
Commercial uses
Popularity

Source: www.langpop.com
Last data update: Sat Aug 07 2010
References

 www.python.org
 www.wikipedia.org
 www.langpop.com
 The Quick Python Book, 2nd Edition (2010) by Vernon L. Ceder
 Learning Python, 3rd Edition (2008) by Mark Lutz

You might also like