IT 116: Introduction to Scripting
Class 6

Today's Topics

Review


New Material

Reading Assignment

You should read Chapter 3, Decision Structures and Boolean Logic, from our textbook, Starting Out with Python, before next week's class.

Homework 3

I have posted homework 3 here.

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

Let's take a look at it.

Review

Performing Calculations

Decimal and Integer Division

Exponent Operator

Remainder Operator

Operator Precedence

Grouping with Parentheses

Mixed-Type Expressions and Data Type Conversion

Breaking Long Statements into Multiple Lines

New Material

Escape Characters

Concatenation Operator

Concatenating Strings with Numbers

Printing Numbers

The format Function

Using format with Scientific Notation

Using format to Put Commas in Big Numbers

Specifying Minimum Length for a Number

Alignment with the format Function

Formating Percentages

Don't Worry about the format Function

I will not ask you to use format on a quiz or exam.

I do not expect you to memorize all the different components of a format string.

These are the sorts of things you look up when you need them.

Attendance

Class Quiz