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 http://96.126.105.215/umb_classes_html/it116_f17_html/class_page_it116.html

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 http://96.126.105.215/umb_classes_html/it116_f17_html/class_notes_it116/class_notes_index_it116.html .

Review

Running a Script Using python3

Running a Script Without python3

Records

Errors

Runtime Errors

Exceptions

Catching Exceptions

Different Exception Types

Common Exception Types

The else Clause

Sequences

Lists

Sequence Operators

Empty Lists

The len Function

Using a for Loop with Lists

Indexing

Changing Elements Using Indexes

Slices

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

Tuples

Why Use Tuples?

Accessing Characters in a String

Negative Numbers as Indexes

Strings Are Immutable

Substrings

Testing Strings with in and not in

strip()

Splitting a String

Attendance