CS 230: Introduction to Programming with Python

Colan Biemer · All courses

The slides and handouts for CS 230. Start with the welcome guide to install Python and VS Code, then follow the lectures in order.

Getting Started

The schedule, setting up your computer, and turning in your work.

Fall 2026

Schedule

Readings, practice problems, programs, and quizzes, week by week.

Setup

Welcome

Install Python 3.14 and VS Code, then run your first program.

Submitting

Code in Brightspace

Paste code into a Brightspace text box with Insert Code so it keeps its indentation.

Lectures

Functions

Defining functions, parameters, return, None, local variables, and optional parameters.

Slides (PDF)

Lists

Creating and indexing lists, append, looping over a list, and min, max, and sum.

Slides (PDF)

Handouts

Extra reading that goes with the lectures.

String Cheat Sheet

Everything about strings from Chapter 8 of the textbook and class, in one place.

Changing Lists Cheat Sheet

Slicing, adding and removing items, copies, sorting, tables, and tuples, from Chapter 6 of the textbook and class.

The os Module Cheat Sheet

The current working directory, paths, listing and checking files, and textbook programs K-1 and K-2, from Appendix K of the textbook and class.

Data Files

Every file the lectures read, to look at or download, and where to save each one.

Patterns

Short pieces of code that solve problems that come up often: Look Before You Leap and Easier to Ask for Forgiveness than Permission.

In progress

Why Python Has with

Why a file has to be closed even when something goes wrong, how finally did that before with, and what else with cleans up.

How a Python Program Exits

Stopping a program early with sys.exit, why exit() belongs to the interactive shell, and what the exit status tells other programs.