IT 116: Introduction to Scripting
Class 14

Today's Topics


Homework 7

I have posted homework 7 here.

It is not due this coming Sunday.

Instead is due on the Sunday of the following week, October 28th.

This is to allow you time this weekend to study for the mid-term.


The mid-term exam will be given on Tuesday, October 23rd.

It will consist of questions like those on the quizzes along with questions asking you to write short segments of Python code.

60% of the points on this exam will consist of questions from the Ungraded Class Quizzes.

The today's class is a review session.

You will only be responsible for the material in the Class Notes for today's class on the exam.

The Mid-term is a closed book exam.


Strings and String Literals




Creating Variables with Assignment Statements


Variable Naming Rules

Numeric Data Types and Literals

Reading Numbers with the input Function

Performing Calculations

Decimal and Integer Division

Exponent Operator

Remainder Operator

Operator Precedence

Grouping with Parentheses

Mixed-Type Expressions and Data Type Conversion

Escape Characters

Concatenation Operator

Boolean Expression

Relational Operators

Precedence of Relational Operators

Control Structures

if Statements

if-else Statements

Indentation in the if-else Statement

Comparing Strings

Nested if Statements

Testing a Series of Conditions

if-elif-else Statements

Logical Operators

Precedence of Logical Operators


While Loops

Infinite Loops

for Loops

The range Function

Calculation a Running Total

Augmented Assignment Operators

Input Validation Loops

Nested Loops


Two Types of Functions

Function Names

Defining a Function

Calling a Function

Local Variables

Passing Values to Functions

Passing Multiple Arguments

Default Values for Parameters

Global Variables