IT 116: Introduction to Scripting
Class 16

Tips and Examples


Review


New Material


Microphone

Homework 7

I have posted homework 7 here.

It is due this Sunday at 11:59 PM.

Graded Quiz Next Week

There will be a graded quiz next week.

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

Midterm

I have started scoring the Midterm.

I hope to be finished by Monday.

Questions

Are there any questions before I begin?

Tips and Examples

Do Not Change the Test Code in Homework Scripts

Scripts and Functions Need Comments

Don't Comment the Obvious

return vs. print in Functions

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

Attendance

New Material

Returning Values That Are Not Numbers

Boolean Functions and Data Validation

Storing Functions in Modules

Incremental Development

An Example of Incremental Development

Rock, Paper, Scissors - Step 1

Rock, Paper, Scissors - Step 2

Rock, Paper, Scissors - Step 3

Rock, Paper, Scissors - Step 4

Rock, Paper, Scissors - Step 5

Refactoring

Responsibility of IT Professionals

Class Exercise

Class Quiz