IT 117: Intermediate Scripting
Class 28

Today's Topics


Final Exam

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

The exam will be given in the same room we use for this class.

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.

Although classes do not end until Friday, December 14th, I do not have materials for an additional class, and do not have the time to prepare them.

Instead, on day when the last class would normally be held, Thursday, December 13th I will have office hours from Noon to 6 PM.

You may come to my office at any time during this period, for help of any sort, without making an appointment.

Today's will be a review session.

Even though classes do not end until the following week, today's class will be the last class.

Instead of having a Class 29, I will have Office Hours all day, from 11 AM to 6 PM.

You will only be responsible for the material in today's Class Notes 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.




Defining a Class

The Constructor Is Special

Creating An Object from A Class

The self Variable

Data Hiding

Hiding Methods

The __str__ Method

Accessor and Mutator Methods

Magic Methods

Magic Methods and Boolean Operators

Type Conversion Magic Methods

Functions Calling Functions

Recursive Functions

Writing Recursive Functions

Calculating the Factorial of a Number

Calculating Fibonacci Numbers

Replacing Recursion with a Loop

Direct versus Indirect Recursion