IT 116: Introduction to Scripting
Class 16

Today's Topics

Tips and Examples


Review


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.

Tips and Examples

Scripts and Functions Need Comments

Don't Comment the Obvious

Review

Default Values for Parameters

Global Variables

Global Constants

Functions that Return Values

Returning Multiple Values

Standard Library Functions

Creating Random Numbers

The random Module

Other random Functions

Random Number Seeds

New Material

Returning Values That Are Not Numbers

Boolean Functions and Data Validation

Storing Functions in Modules

Incremental Development

An Example of Incremental Development

Refactoring

Attendance

Class Quiz