Scripting Part 2: Introduction Python

02/4/1


Click here to start


Table of Contents

Scripting Part 2: Introduction Python

Origin of Scripting Languages

"System Programming" Languages

Higher-level Programming

Script Programming

Typing and Productivity

Python

Feeding a 26-foot python

IDLE

Built-in Data Structures: Numbers

Built-in Data Structures: Strings

Built-in Data Structures: Strings

Built-in Data Structures: Strings

List-like structures

Built-in Data Structures: Lists

Reading Assignment

Printing tricks

Built-in Data Structures: Lists

Built-in Data Structures: Lists

Lists: Accessing Items

Lists: Accessing Items

Lists: Deleting Items

Lists: Length

Lists: Constructing Lists

Lists: Constructing Lists

Lists: Constructing Lists

Lists: Methods

Lists: Methods

Lists: Methods

Sequence Iteration

Iteration

Functions

parameters

Functions

Functions

Functions

Built-in Data Structures: Dictionaries

Dictionaries: Accessing items

Dictionaries: Deleting items

Dictionaries: Length

Dictionaries: Methods

Dictionaries: Methods

Built-in Data Structures: Tuples

Built-in Data Structures: Tuples

Tuples: Accessing Items

Tuples: No Deletion and Length

Tuples: Constructing Tuples

Hierarchy of Numbers

Hierarchy of Built-in Collections

Statements: Assignment

Statements: Print

Selection

Selection

Additional References

Reading (Prep for next assignment)

Python’s Files, Modules, Classes and Exceptions

Files

Files

Modules

Using Modules

Using Modules

Standard Modules

string

Regular expressions

Regular Expressions

Defining Regular Expression

Regular Expression Matching

Regular Expression Matching

Matching Object Methods

Extended Syntax

Grouping

Classes

Class Constructor

Class Examples

Exceptions

Reading Assignment

Author: GD

Email: dudek@cim.mcgill.ca