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.

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

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