IT 116: Introduction to Scripting
Class 21

Tips and Examples


Review


New Material


Microphone

Graded Quiz

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.

You can only take this quiz today.

There is not makeup for the weekly quiz because Gradescope does not permit it.

Solution to Homework 8

I have posted a solution to homework 8 here.

Let's take a look.

Homework 10

Homework 10 is posted here.

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

Questions

Are there any questions before I begin?

Tips and Examples

Don't Create a File Object When Given One as a Parameter

Don't Use Code You Copied from Google

Review

Errors

Syntax Errors

Logic Errors

Runtime Errors

Exception Objects

Catching Exceptions

Exceptions and Data Validation

Attendance

New Material

The Code in the try Clause

Different Exception Types

Common Exception Types

Handling More Than One Type of Exception

Using the Data in Exception Objects

The else Clause

The finally Clause

Do No Harm

Class Exercise

Class Quiz