IT 117: Intermediate Scripting
Class 10

Today's Topics

Review


New Material

Homework 5

I have posted homework 5 here.

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

Mid-term

The mid-term exam will be given on Tuesday, October 24th.

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.

The last class before the exam, Thursday, October 19th, will be a review session.

You will only be responsible for the material in the Class Notes for that class on the exam.

The Mid-term is a closed book exam.

Review

The Size of a Set

When Are Sets Equal?

Elements in A Python Set

for Loops with Sets

Testing for Set Membership

Union of Sets in Python

Intersection of Sets in Python

Difference between Sets in Python

Symmetric Difference between Sets in Python

Subsets and Supersets

Disjoint

The clear Method

min And max with Sets

Sets More Efficient Than Lists

New Material

Working with the Operating System

The os Module

os.getcwd()

os.listdir(path)

os.chdir(path)

os.rename(old_name, new_name)

os.remove(path)

os.rmdir(path )

os.mkdir(path )

Running Unix Commands within Python

os.environ

The os.path Module

os.path.isfile(path) and os.path.isdir(path)

os.path.basename(path)

The sys Module

Getting Values from the Command Line

Leaving a Running Script

Usage Messages

Attendance

Class Quiz