IT 116: Introduction to Scripting
Class 20

Today's Topics

Review


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

Review

Running a Script Using python3

Running a Script Without python3

Why Make a Script Executable?

Records

Reading Records from a File

Finding the Average From a File of Records

Closing a File Object

Looping Through a File More Than Once

New Material

More Data Processing in a Loop

Errors

Syntax Errors

Logic Errors

Runtime Errors

Exceptions Objects

Catching Exceptions

Exceptions and Data Validation

Improving the Validation Function

Attendance

Class Quiz