IT 116: Introduction to Scripting
Class 9

Tips and Examples


Review


New Material


Microphone

Graded Quiz

You can connect to Gradescope to take weekly graded quiz today during the last 15 minutes of the class.

Once you start the quiz you have 15 minutes to finish it.

You can only take this quiz today.

There is not makeup for the weekly quiz because Gradescope does not permit it.

Readings

If you have the textbook you should read Chapter 4, Repetition Structures, from Starting Out with Python.

Solution to Homework 3

I have posted a solution to homework 3 here.

Let's take a look.

Homework 5

I have posted homework 5 here.

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

Questions

Are there any questions before I begin?

Tips and Examples

Comments

Don't Use Whitespace at the Beginning of a Line

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

Attendance

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

Class Exercise

Class Quiz