IT 116: Introduction to Scripting
Class 16

Today's Topics

Tips and Examples


New Material

Reading Assignment

You should read Chapter 6, Files and Exceptions, from our textbook, Starting Out with Python, before next week's class.

Homework 7

I have posted homework 7 here.

It is due the Sunday at 11:59 PM.

Quiz 5

Let's look at the answers to Quiz 5.


There will be a graded quiz next week.

It will cover the material we will discuss today, and the material from Class 13.

Tips and Examples

Scripts and Functions Need Comments


Value Returning Functions

Standard Library Functions

Creating Random Numbers

The random Module

Other random Functions

Random Number Seeds

New Material

Functions that Return Values

Returning Values That Are Not Numbers

Removing Repeated Code

Advantages of Using Functions

Stepwise Refinement

Functions Returning Boolean Values

Boolean Functions and Data Validation

Storing Functions in Modules


Class Quiz