IT 116: Introduction to Scripting
Class 24

Tips and Examples


Review


New Material


Microphone

Questions

Are there any questions before I begin?

Homework 10

I have posted homework 10 here.

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

Quiz 9

You will find the answers to Quiz 9 here.

Tips and Examples

Don't Use Indexes to Loop Through a List

Review

Operators That Work on Objects

Concatenating Lists

The Repetition Operator

Indexing

Changing Elements Using Indexes

Using range with Indexes

Slices

Leaving Out Indexes in a Slice

Skipping Elements in a Slice

The in Operator

List Methods

The append Method

The pop Method

The sort Method

The reverse Method

The del Statement

The min and max Functions

Attendance

New Material

Time for Computer Operations

Reading a File into a List

Advantages of Using Lists with Files

Problems with Copying Objects

Copying Lists

Functions That Return Lists

Functions That Return Objects

Functions That Work with Lists

Functions That Change Lists

Intellectual Property

Class Exercise

Class Quiz