Programming Python

Why Python

Python Highlights

More Python Highlights

Overview

Overview Part 1

Plan

An Example

What does it do?

Looping

Loops  I

Sequence

Loops II

Loops III

Loops IV

Loops V

A dictionary

Dictionaries

Dictionaries – Setting and getting values

An example -- revisited

An example -- revisited

Dictionary methods

An example – an alternative

Dictionaries – common constructs

Conditionals

Condition

Boolean expressions

An example -- string methods

Strings

String Slices

String methods

An example -- string methods

More on strings -- Conversions

More on strings – formatting

Break

"Welkom back"

An example – file object

Files

File methods

An example – revisited again

A new example

Writing a function

Functions

A docstring

Function arguments

Optional function arguments

Calling functions

Calling functions

Returning values

Tuple packing and unpacking

Tuple packing and unpacking

Functions supplied by Python

Builtin functions

Generally usefull builtin functions

Introspection

Types

Functional functions

Importing a module

What modules are available

What module categories are availables

More module categories

sys

os, os.path

How do Python modules work

How do modules work, the sequel

Packages

Importing names from a module

Importing modules revisited

Namespaces

Final words