Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python (2025)

Programming with Python

Students learn the basics of Python, including variables, user input, control structures, functions with parameters and return values, and basic graphics, and how to send messages to objects.

Lessons

3.1 What is Code

  • What is Code?
  • What is Software?
  • Respond: What is Software

3.2 Uses of Programs

  • Uses of Programs
  • Coding for a Cause
  • Response: Coding for a Cause
  • Reflection: Programs in Your Life
  • Reflection: Future Programs
  • +1 more

3.3 Hello World

  • Hello World
  • Hello World Quiz
  • Hello World
  • Your Name and Hobby

3.4 Variables

  • Variables
  • Variables Quiz
  • String Operators
  • String Operators Quiz
  • Basic Variables
  • +2 more

3.5 User Input

  • User Input
  • User Input Quiz
  • Basic User Input
  • Obi-Wan Says
  • AP Practice: User Input
  • +1 more

3.6 Basic Math in Python

  • Basic Math in Python
  • Basic Math in Python Quiz
  • Order of Operations
  • Dollars to Pounds
  • Division in Python
  • +5 more

3.7 Using Graphics in Python

  • Graphics
  • Python Graphics Quiz
  • Graphics Hello World
  • Blue Circle
  • Red Rectangle
  • +5 more

3.8 Mouse Events: Mouse Clicked

  • Mouse Events: Mouse Clicked
  • Mouse Events: Mouse Clicked Quiz
  • Click For Circles
  • Click For Mickey
  • Click for Rectangles

3.9 Programming with Python Quiz

  • Programming with Python Quiz