IT 116: Introduction to Scripting
Class 12

Today's Topics

Review


New Material

You should read Chapter 5, Functions, from our textbook, Starting Out with Python, before next week's class.

Homework 5

I have posted homework 5 here.

It is not due this coming Sunday.

Instead is due on the Sunday of the following week, July 8th.

This is to allow you time this weekend to study for the mid-term.

Mid-term

The mid-term exam will be given on Monday, July 2nd.

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, June 28th, 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.

Quiz 2

I have posted the answers to Quiz 2 here.

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

Functions

Using Functions in Writing Programs

Two Types of Functions

Function Names

Defining a Function

Calling a Function

Indentation in Python

New Material

The Advantages of Isolation

Specifying the Work for a Function

Keep It Simple

Functions in Memory

Memory for Variables

Parameters

Local Variables

Parameters Are Local Variables

Passing Arguments to Functions

Passing Multiple Arguments

Default Values for Parameters

Argument Values in a Different Order

Global Variables

Global Constants

Pausing Execution of a Script

Attendance