IT 116: Introduction to Scripting
Class 14

Today's Topics

Review

Homework 7

I have posted homework 7 here.

It is not due this coming Sunday.

Mid-term

The mid-term exam will be given on Tuesday, March 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 other 40% will come from four questions that ask you to write a short segment of code.

Today's class will be 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.

To prevent cheating, certain rules will be enforced during the exam.

Review

Strings and String Literals

Characters

Comments

Variables

Creating Variables with Assignment Statements

Expressions

Variable Naming Rules

Numeric Data Types and Literals

The input Function

Performing Calculations

Decimal and Integer Division

Exponent Operator

Remainder Operator

Operator Precedence

Grouping with Parentheses

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

Nested if Statements

if-elif-else Statements

Logical Operators

Precedence of Logical Operators

Loops

While Loops

Infinite Loops

for Loops

The range Function

Running Totals

Augmented Assignment Operators

Nested Loops

Functions

Two Types of Functions

Defining a Function

Calling a Function

Local Variables

Parameters

Attendance