IT 116: Introduction to Scripting
Class 13

Today's Topics

Tips and Examples


New Material

Homework 7

I have posted homework 7 here.

It is not due this coming Sunday.

Instead is due on the Sunday of the following week, October 28th.

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


The mid-term exam will be given on Tuesday, October 23rd.

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 18th, 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.

Quiz 4

Let's look at the answers to Quiz 4.

Tips and Examples

Don't Use Screenshots in Piazza


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