Python Workshop(ACM@UIUC)
Outline
BRIEFLY,WHAT IS PYTHON?
What’s in a name?
What is Python?
Touchy-feely properties
High-level properties
Interfaces to...
Language properties
High-level data types
WHY USE PYTHON?
Productivity!
What is it used for?
Who is using it?
Exciting Applications
Typical Success Stories
How Far We Have Come
PYTHONCOMPARED TOOTHER LANGUAGES
Python vs. Perl
Python vs. Tcl
Python vs. Java
JPython
Java Integration
BASICPYTHONTUTORIAL
Tutorial Outline
Interactive “Shell”
Numbers
Strings
Lists
More list operations
Dictionaries
More dictionary ops
Dictionary details
Tuples
Variables
Reference semantics
Changing a shared list
Changing an integer
Control structures
Grouping indentation
Functions, procedures
Example function
Classes
Example class
Using classes
Subclassing
Subclassing (2)
Class & instance variables
Instance variable rules
Modules
Packages
Catching Exceptions
Try-Finally: Cleanup
Raising Exceptions
Email: guido@python.org
Home Page: http://www.python.org/~guido/
Download presentation source