IT 117: Intermediate Scripting
Class 4

Today's Topics

Python Review

Reading Assignment

In Chapter 9, Dictionaries and Sets, from our textbook, Starting Out with Python, you should read section 9.1, Dictionaries, before next Tuesday's class.

Homework 2

I have posted homework 2 here.

It is due this coming Sunday at 11:59 PM.

Class Page for IT 116

You may find it useful to look at my materials for IT 116.

I have a web site where I post most of the materials for my courses for the previous semester.

You will find these materials here

I have included this link on the class page for the course.

Go to the index for the Class Notes and search for a topic.

You will find the index here .


Running a Script Using python3

Running a Script Without python3



Runtime Errors


Catching Exceptions

Different Exception Types

Common Exception Types

The else Clause



Sequence Operators

Empty Lists

The len Function

Using a for Loop with Lists


Changing Elements Using Indexes


Leaving Out Indexes in a Slice

Skipping Elements in a Slice

The in Operator

List Methods

The append Method

The sort Method

The reverse Method

The del Statement

The min and max Functions

Functions That Return Lists

Functions That Work with Lists

Functions That Change Lists


Why Use Tuples?

Accessing Characters in a String

Negative Numbers as Indexes

Strings Are Immutable


Testing Strings with in and not in


Splitting a String