IT 116: Introduction to Scripting
Class 20

Today's Topics


New Material

Reading Assignment

You should read Chapter 7, Lists and Tuples, from our textbook, Starting Out with Python, before next week's class.

Homework 9

I have posted homework 9 here.

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

You must make the script for this assignment executable or you will loose points


Running a Script Using python3

Running a Script Without python3

Arranging Data in a File


Reading Records from a File

Removing Linefeed Characters

Cleaning Up the Record Reading Script

Reading Records with a for Loop

New Material

Working with the Data in Records

Getting More Information from the Records

Getting the Average Value from Records

Multiple Reading of Records


Runtime Errors


Catching Exceptions