Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python


Unit Description
Introduction to Programming: Karel is a dog that only knows how to move, turn left, and place tennis balls in his world. You can give Karel these commands to instruct him to do certain things. We use Karel to show you what it means to program, and allow you to focus on problem-solving.
Practice PT: Pair-Programming Paint!: In this project, students apply their knowledge of Karel to express their artistic side and create an image using Ultra Karel commands.
Programming with Python: Students learn the basics of Python, including variables, user input, control structures, functions with parameters and return values, and basic graphics, how to send messages to objects.
Python Control Structures: Students learn how to use booleans and logical operators with control structures to make more advanced programs in JavaScript.
Functions and Parameters: Students learn how to write reusable code with functions and parameters.
Practice PT: Tell a Story: Students apply what they've learned from the previous module to write reusable code with functions and parameters.
Basic Data Structures: Students will learn the basics of lists in Python while exploring tuples and lists. Students will explore how to create each of these and the various methods to access or alter them.
Digital Information: Students learn about the various ways to represent information digitally including number systems, encoding data, programmatically creating pixel images, comparing data encodings, compressing and encrypting data.
Practice PT: Steganography: Students apply knowledge about digital representation of data in a real-world application of using steganography to encrypt information.
Practice PT: Create an Image Filter!: Students apply data structure and digital information concepts together to create their own image filters.
The Internet: Students explore the structure and design of the internet, and how this design affects the reliability of network communication, the security of data, and personal privacy.
Project: The Effects of the Internet: Students apply their knowledge of the internet as they look at the impacts that it has on our world.
Data: Students explore using computational tools to store massive amounts of data, manipulate and visualize data, find patterns in data, and pull conclusions from data.
Project: Present a Data-Driven Insight: Students apply data concepts into a project where they can explore their own data application.
Project: The Impact of Computing: While the performance task is no longer a graded part of the AP test, the skills needed for the performance task are still a part of the curriculum. This module will give students a chance to apply these concepts in a project format.
Create Performance Task: Students will be given the chance to review course content and practice the skills necessary to complete each performance task.
AP Exam Review: Students review of the topics covered in the course and practice solving AP Exam-style multiple-choice questions.
Creative Development: Students learn the theory and practice of user interface design. Students learn about what makes an engaging and accessible user interface and will employ an iterative design process including rapid prototyping and user testing to design and develop their own engaging programs.
Final: Final exam for the course.
Computer Science Principles Pretest:

Unit Description
Computer Science Principles Posttest:
Extra Karel Practice: It can take some time to learn all of Karel's tricks. Brush up here with some extra Karel practice problems. These reinforce all of the fundamental concepts introduced in Karel, including commands, functions, loops, conditions control structures, and problem decomposition.
Extra Karel Puzzles: A set of all the trickiest Karel puzzles for you to solve
Karel Challenges: In this module you'll take all the foundational concepts from Karel to solve some programming challenges.
Web Development: In this unit, students will go through a high level introduction to HTML, CSS, and the processes involved in viewing web pages on the internet. Students will create several simple web pages using the CodeHS online editor to gain practice using the various features of HTML and CSS.
Classes and Objects: Learn the principles of object-oriented design.
Additional Topics: Teach your program to make decisions based on the information it receives. Learn how to decompose your program into smaller pieces that work together to solve a problem!
Project: Who Said It?: Use your programming knowledge to build a program that can predict whether a small sample of text was written by Jane Austen or William Shakespeare!
Project: Mastermind:
Practice PT: Testing 1, 2, 3 ...:
Practice PT: The Shopping List:
Strings: Students use more sophisticated strategies for manipulating text in their programs - slicing, concatenating, and formatting.
Updated Practice Create Performance Task Exercises:
Create Performance Task - Effective 2023-2024: