Slides APAC Python 102 tutorial

Slides APAC Python 102 tutorial - Python Tutorials Python...

Info iconThis preview shows pages 1–7. Sign up to view the full content.

View Full Document Right Arrow Icon
Python Tutorials - Python 102 by Morgan Heijdemann
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
session 1 : 2.00pm - 3.45pm Introduction + brief history Numbers and Strings Typecasting String (and list) functions Splitting strings and lists Going through lists Create new list based on condition Range Strings and conditions Count and length Replace Split / Join String formatting Functions - recap Returning values Passing parameters Passing parameters by name: Default param values Checking if parameter has been passed Arbitrary argument list Anonymous function generator lambda void main(void) ? Namespaces / import Import/namespaces Create your own library and namespace Importing from directories above your current Introspection Type() Under the hood with dir( ) Pretty print
Background image of page 2
session 2 : 4.15pm – 6.00pm Files open, read whole file at once Read line by line Writing line by line and close Read/write and seek Classes Constructing with __init__ Class, instance and properties Self ? Overwriting __getitem__ and __setitem__ Linking up the class’s iteritems to the list Inheritance Destructor (teardown) and __del__ @classmethod __str__( ) Iterators Iteration using iter() Iterate using for loop by index Iterate using for loop by element Iterate through key/value pairs using items() Iterate using Enumerate Generators Exceptions zeroDevision, NameErrors and others How to catch exceptions Replace any exception handler Create your own exceptions How to raise exceptions Cleaning up after exceptions Using try/except to catch uninstalled libraries Using try/except to catch IOErrors to check if we are online
Background image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
History of python Invented in 1990 by Guido Van Rossum The name ‘Python’ stems from "Monty Python's Flying Circus" Intended to be a scripting language on Amoeba OS Python was influenced by ABC and Modula-3 First public release was in 1991 IDLE comes from Eric Idle, one of the characters from Monty Python. Guido and the Django mascot
Background image of page 4
History of python first steps 1991 Feb 20: Guido announces Python . This is Python, an extensible interpreted programming language that combines remarkable power with very clear syntax. This is version 0.9 (the first beta release), patchlevel 1. 1992 May 22: Python 0.9.6 now available for MS-DOS . If you don’t know yet what Python is: it’s an interpreted, interactive, object-oriented programming language. (Yes, I’m trying to compete with lisp, perl and tcl here!)
Background image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
History of python timeline Release Date Version Release Date Version December, 1989 Implementation started November 10, 1994 1.1.1 In the year 1990 Internal releases at CWI April 13, 1995 1.2 February 20, 1991 0.9.0 (released to alt.sources) October 13, 1995 1.3 February, 1991 0.9.1 October 25, 1996 1.4 Autumn, 1991 0.9.2 January 3, 1998 1.5 December 24, 1991 0.9.4 October 31, 1998 1.5.1 January 2, 1992 0.9.5 (Macintosh only) April 13, 1999 1.5.2 April 6, 1992 0.9.6 September 5, 2000 1.6 Unknown, 1992 0.9.7beta October 16, 2000 2.0 January 9, 1993 0.9.8 April 17, 2001 2.1 July 29, 1993
Background image of page 6
Image of page 7
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

Page1 / 105

Slides APAC Python 102 tutorial - Python Tutorials Python...

This preview shows document pages 1 - 7. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online