IT 116: Introduction to Scripting
Class 28

Today's Topics

Review

Final Exam

The final exam will be given on Thursday, May 21st. It will be on Blackboard. I will use the same format as the Midterm. The exam will be a two parts exam (Questions and writing short segments of Python code).

The last day of our class will be on Tuesday, May 12th, We will have an optional Zoom meeting for any question you may have. I will send you the Zoom information.

Class 28, on Thursday, May 7th, will be a review session.

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

The final will be an online 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