IT 116: Introduction to Scripting
Class 13

Today's Topics


New Material

Reading Assignment

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.


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.

Today's New Material Not on Mid-term

The new material in today's class will not appear on the Mid-term.

You will only be responsible for the material in the Class Notes for the next class.

They will cover Class Notes 2 through 12.


Local Variables

Passing Values to Functions

Passing Multiple Arguments

Default Values for Parameters

Global Variables

Global Constants

Pausing Execution of a Script

New Material

Functions that Return Values

Returning Multiple Values

Standard Library

Creating Random Numbers

The random Module

Other random Functions

Random Number Seeds


Class Quiz