IT 117: Intermediate Scripting
Class 24

Today's Topics


New Material

Reading Assignment

In Chapter 12, Recursion, from our textbook, Starting Out with Python, you should read sections 12.1 - 12.3 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.


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