IT 116: Introduction to Scripting
Class 11

Today's Topics

Tips and Examples

Review


New Material

Reading Assignment

You should read Chapter 5, Functions, from our textbook, Starting Out with Python, before next week's class.

Homework 5

I have posted homework 5 here.

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

Mid-term

The mid-term exam will be given on Tuesday, March 20th.

This is the first Tuesday after the Spring break.

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 last class before the exam, Thursday, March 8th, will be a review session.

You will only be responsible for the material in the Class Notes for that class on the exam.

The Mid-term is a closed book exam.

Tips and Examples

Writing Python Scripts with a Text Editor

The Command Line

Colorizing nano

Review

Calculation a Running Total

Augmented Assignment Operators

Sentinels

Input Validation Loops

Nested Loops

New Material

Functions

Using Functions in Writing Programs

Two Types of Functions

Function Names

Defining a Function

Calling a Function

Indentation in Python

Top Down Design

Example of Top Down Design

Pausing Execution of a Script

Attendance

Graded Quiz