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.

Scoring the Mid-term

I will score the mid-term this weekend.

You will receive your scores by Monday.

Graded Quiz Next Week

There will be a graded quiz next week.

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

Tips and Examples

Scripts and Functions Need Comments

Don't Comment the Obvious


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

Functions Returning Boolean Values

Boolean Functions and Data Validation

Storing Functions in Modules

Incremental Development

An Example of Incremental Development



Class Quiz