IT 116: Introduction to Scripting
Class 24

Tips and Examples


Review


New Material


Microphone

Questions

Are there any questions before I begin?

Graded Quiz 9

You can connect to Gradescope to take weekly graded quiz today during the last 15 minutes of the class.

Once you start the quiz you have 15 minutes to finish it.

Homework 11

I have posted homework 11 here.

This is the last homework assignment.

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

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

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