IT 116: Introduction to Scripting
Class 28

Today's Topics

Review

Final Exam

The final exam will be given on Thursday, December 19th from 11:30 - 2:30.

The exam will be given in this room.

It will consist of questions like those on the quizzes along with questions asking you to write short segments of Python code.

60% of the points on this exam will consist of questions from the Ungraded Class Quizzes.

Although classes do not end until Friday, December 13th, I do not have materials for a 29th class, and do not have the time to prepare them.

Instead, on day when the last class would normally be held, Thursday, December 12th I will have office hours from Noon to 6 PM.

You may come to my office at any time during this period, for help of any sort, without making an appointment.

Today's class will be a review session.

You will only be responsible for the material in today's Class Notes and the review for the Mid-term, which you will find here.

Although the time alloted for the exam is 3 hours, I would expect that most of you would not need that much time.

The final is a closed book exam.

To prevent cheating, certain rules will be enforced during the exam.

Global Variables

Functions that Return Values

Returning Multiple Values

The random Module

Files

Working with a File in Python

Objects

Opening a File

Writing Data to a File

Reading Files with a for Loop

Running a Script Using python3

Running a Script Without python3

Errors

Syntax Errors

Logic Errors

Runtime Errors

Exception Objects

Catching Exceptions

Exceptions and Data Validation

The Code in the try Clause

The else Clause

Sequences

Lists

Operators That Work on Objects

Concatenating Lists

The Repetition Operator

Using a for Loop with Lists

Indexing

The len Function

Changing Elements Using Indexes

Empty Lists

The in Operator

List Methods

The append Method

The sort Method

The reverse Method

The del Statement

The min and max Functions

Reading a File into a List

Tuples

Strings Are Sequences

Accessing Characters With Indexing

Using a for Loop with Strings

Strings Are Immutable

Attendance