AP CSP Programming Crash Course

Made by Owen Dechow

Learn to program from scratch, one small idea at a time. This course teaches the pseudocode language used on the AP Computer Science Principles exam, and every example runs right on the page. No installs, no setup. Just read, press run, and change things to see what happens.

csp
You may also type <- !=>= <= for auto complete.

Try it. Then change the message and run it again. That habit of tweaking an example to see what changes is the fastest way to learn, and you will use it in every chapter.

Jump Right In

What You Will Learn

By the end of this course you will be able to:

You do not need any experience. If you can read this page, you can do this course.

How the Course Works

Each chapter is short and builds on the one before it, so it is best to go in order. Look for these as you read.

Table of Contents

Getting Started

  1. Introduction to Programming: AP CSP
  2. Displaying Output—“Hello, World!”

The Building Blocks

  1. Datatypes & Variables
  2. Comments
  3. Conditionals
  4. Case Sensitivity

Collections, Code Reuse, and Loops

  1. Lists & For Each
  2. List Functions & Indexing
  3. Procedures
  4. Input
  5. More Loops

Drawing and Games

  1. Getting Started with Rendering
  2. Shapes, Lines, and Text
  3. Animation
  4. Drawing Many Things
  5. Keyboard Input
  6. Creating a Very Simple Platformer

A Peek at Where You Are Headed

By chapter 12 you will be drawing on a canvas. This tiny program is the kind of thing you will write, and the chapters will explain every line of it.

csp
You may also type <- !=>= <= for auto complete.

That is a crescent moon. By chapter 17 you will be steering a character around a level.

Tips for Success

Ready? Start with Introduction to Programming: AP CSP.