Editor

Computer Science Principles in Python

12 units · 34 weeks · 107 exercises · 131 exam-style questions

A free, full-year course for the AP® Computer Science Principles exam, with every program running in your browser.

Units

Unit 1 · 3 weeks

Programs, variables and errors

Write, test and debug short programs that store and combine values.

Framework topics: 1.1 Collaboration, 1.2 Program Function and Purpose, 1.3 Program Design and Development, 1.4 Identifying and Correcting Errors, 3.1 Variables and Assignments, 3.3 Mathematical Expressions, 3.4 Strings

Unit 10 · 3 weeks

The impact of computing

Weigh the effects of computing innovations, including bias, privacy and security.

Framework topics: 5.1 Beneficial and Harmful Effects, 5.2 Digital Divide, 5.3 Computing Bias, 5.4 Crowdsourcing, 5.5 Legal and Ethical Concerns, 5.6 Safe Computing

Unit 11 · 3 weeks

The Create performance task

Build an original program with a list and a procedure, then record the video and the Personalized Project Reference.

Framework topics: Create performance task (at least 9 hours of class time)

How the multiple-choice section is weighted

Big ideaShare of questionsUnits
1. Creative Development10-13%1, 11
2. Data17-22%6, 7
3. Algorithms and Programming30-35%1, 2, 3, 4, 5, 9
4. Computer Systems and Networks11-15%8, 9
5. Impact of Computing21-26%10

The exam is 70 multiple-choice questions (70% of the score) and written responses about the student's own Create task program (30%, together with the task itself).

For teachers

  • Every unit is a ready-made set in Classrooms: assign it in two clicks and watch a live board of who solved what and who is stuck.
  • Solutions to assigned work stay hidden until a student solves it or it is past due, and you can replay how each student wrote their code.
  • Activities can go into Moodle, Canvas or Schoology, with scores in the gradebook.
  • The pacing guide lays out all 34 weeks, and the Create task guide covers the rules and the timeline.

Questions

Is the course free?
Yes, every lesson, exercise and question, with no account needed. Signing in only saves your progress across devices.
Can the Create performance task be written in Python?
Yes. Any language with variables, lists, conditionals, loops and procedures is allowed, and Python is one of the languages the course framework names.
Which version of the exam does it follow?
The 2026-27 course framework, for the May 2027 exam. The course is being redesigned for 2027-28; each lesson lists the framework topics it covers, so it can be remapped when the new framework is published.
Is this an official or endorsed course?
No. It is pythoncompiler.io's own course, written to the published course framework. Schools that offer an AP course label it through their own course audit.

AP® and Advanced Placement® are trademarks registered by the College Board, which is not affiliated with, and does not endorse, this website.