IT 117: Intermediate Scripting
Class 24

Today's Topics


New Material

Reading Assignment

In Chapter 13, GUI Programming, from our textbook, Starting Out with Python, you should read sections 13.1 -13.8 before next Tuesday's class.

Homework 11

I have posted homework 11 here.

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

This is the last homework assignment.

Final Exam

The final exam will be given on Thursday, December 21st from 3:00 - 6:00.

The exam will be given in Healey 4-031.

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, Tuesday, December 12th, will be a review session.

You will only be responsible for the material in the Class Notes for that class and the review for the Mid-term, which you will find here.

Although the time alloted for the exam is 3 hours, I would expect that most of you would not need that much time.

You will not be able to leave the room until you turn in your exam paper so you should visit the restroom before you take the test.

The final is a closed book exam.


The Movie Subclass

Creating a Subclass

Creating a Constructor for a Subclass

Movie Accessor Methods

The add_actor Method

A __str__ Method for Movie

The super Function

The Instructional Class

The Instructional Constructor

The __str__ Method for Instructional

The get_name Method for


Mutators for the Instructional Class

Accessors for the Instructional Class

The isinstance Function

New Material

Functions Calling Functions

Recursive Functions

Writing Recursive Functions

Calculating the Factorial of a Number

Calculating Fibonacci Numbers

Another Recursion Example

Replacing Recursion with a Loop

Summing List Elements with a Loop

Calculating Factorials with a Loop

Calculating Fibonacci Numbers with a Loop

Direct versus Indirect Recursion


Class Quiz