IT 116: Introduction to Scripting
Class 17

Today's Topics


New Material

Reading Assignment

You should read Chapter 6, Files and Exceptions, from our textbook, Starting Out with Python, before next week's class.

Homework 5

I have posted homework 5 here.

It is due the Sunday at 11:59 PM.


Functions that Return Values

Returning Values That Are Not Numbers

Advantages of Using Functions

Functions Returning Boolean Values

Storing Functions in Modules

New Material


Types of Files

Identifying a File

Storing Data on a Hard Disk

Files and the Kernel

Working with a File in Python


Accessing the Data in Files

Opening a File

Specifying the Location of a File

Writing Data to a File

Reading Data From a File


Class Quiz