IT 116: Introduction to Scripting
Class 12

Today's Topics

Tips and Examples

Review


New Material

Homework 6

I have posted homework 6 here.

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

Mid-term

The mid-term exam will be given on Tuesday, October 22nd.

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 other 40% will come from four questions that ask you to write a short segment of code.

The last class before the exam, Thursday, October 17th, 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.

To prevent cheating, certain rules will be enforced during the 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.

Tips and Examples

Writing Python Scripts with a Text Editor

The Command Line

Colorizing nano

Review

Calculation a Running Total

Augmented Assignment Operators

Functions

Using Functions in Writing Programs

Two Types of Functions

Function Names

Defining a Function

Calling a Function

New Material

Top Down Design

Example of Top Down Design

The Advantages of Isolation

Specifying the Work for a Function

Keep It Simple

Running Programs and the Operating System

How the Interpreter Uses Process Memory

Parameters

Local Variables

Parameters Are Local Variables

Attendance