IT 116: Introduction to Scripting
Class 9

Today's Topics

Tips and Examples


Review


New Material

Reading Assignment

You should read Chapter 5, Functions, from our textbook, Starting Out with Python, before next week's class.

Homework 5

I have posted homework 5 here.

It is due this coming Sunday at 11:59 PM.

Quiz 2

I have posted the answers to Quiz 2 here.

Tips and Examples

Don't Use Whitespace at the Beginning of a Line

Setting Tab Length in nano

Converting Results to Integer

Use Spaces before and after =

Review

Logical Operators

Short-Circuit Evaluation

Precedence of Logical Operators

Checking Numeric Ranges with Logical Operators

Boolean Variables

New Material

Loops

while Loops

Testing Variables in While Loops

Infinite Loops

Data Validation

Data Validation Loops

An Improved Data Validation Loop

An Example of Input Validation

Compound Statements

Recursion

Attendance

Graded Quiz