IT 116: Introduction to Scripting
Class 8

Today's Topics

Tips and Examples


Review


New Material

Reading Assignment

You should read Chapter 4, Repetition Structures, from our textbook, Starting Out with Python, before next week's class.

Homework 4

I have posted homework 4 here.

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

Tips and Examples

Misleading Error Messages

Review

Control Structures

if Statements

Boolean Expression

Relational Operators

Precedence of Relational Operators

if-else Statements

Indentation in the if-else Statement

Comparing Strings

Nested if Statements

Testing a Series of Conditions

if-elif Statements

New Material

Logical Operators

Short-Circuit Evaluation

Precedence of Logical Operators

Checking Numeric Ranges with Logical Operators

Boolean Variables

Keep Your Code Short

Attendance

Class Quiz