IT 116: Introduction to Scripting
Class 10

Today's Topics

Review


New Material

Reading Assignment

You should read Chapter 4, Repetition Structures, from our textbook, Starting Out with Python, before next week's class.

Homework 5

I have posted homework 5 here.

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

Mid-term

The mid-term exam will be given on Tuesday, October 24th.

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 before the exam, Thursday, October 19th, will be a review session.

You will only be responsible for the material in the Class Notes for that class on the exam.

The Mid-term is a closed book exam.

Script Requirements for Functions

The new homework assignment requires you to define functions

When you write these function you must pay attention to the Script Requirements

Some of these requirements apply to functions.

Review

The for Loop in Python

for Loops in Other Languages

for Loops

The range Function

Changing the First and Last Values with range

Changing the Increment with range

Reversing the range Values

Why Does Python Have the range function?

for Loop that Don't Use the Loop Value

New Material

Calculation a Running Total

Augmented Assignment Operators

Calculating Averages

Sentinels

Input Validation Loops

Nested Loops

Attendance

Class Quiz