Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python (2025)

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.

Lessons

8.1 Intro to Digital Information

  • What is Digital Information?
  • What is Digital Information Quiz
  • Fast Food Menu
  • DNA
  • Reflection: Encodings Everywhere

8.2 Number Systems

  • Number Systems
  • Number Base Tool
  • Number Systems Quiz
  • Decimal to Binary
  • Decimal to Binary Quiz
  • +3 more

8.3 Encoding Text with Binary

  • Encoding Text with Binary
  • Encoding Text with Binary Quiz
  • Morse Code
  • Decoding a Binary Message
  • 2-bit Custom Encoding
  • +5 more

8.4 Pixel Images

  • Pixel Images
  • Pixel Images Quiz
  • Creating Pixel Images
  • CodeHS Logo
  • Checkerboard
  • +2 more

8.5 Hexadecimal

  • Hexadecimal
  • Hexadecimal Quiz
  • Hexadecimal to Decimal
  • Binary to Hex Game

8.6 Pixel Colors!

  • Pixel Colors
  • Pixel Colors Quiz
  • Colors in Bits
  • Colors in Text
  • Colors in RGB
  • +4 more

8.7 Image Manipulation

  • Manipulating Images
  • Manipulating Images Quiz
  • Programming with Images
  • Programming with Images Quiz
  • Black and White Filter
  • +6 more

8.8 Data Compression

  • Data Compression
  • Data Compression Quiz
  • Run Length Encoding
  • Run Length Encoding Quiz
  • Run Length Encoding
  • +2 more

8.9 Lossy Compression

  • Lossy Compression
  • Lossy Compression Quiz
  • Remove the Vowels
  • Decreasing Resolution
  • Analog to Digital
  • +1 more

8.10 Cryptography

  • Cryptography
  • Cryptography Quiz
  • Implementing Caesar's Cipher
  • Implementing Caesar's Cipher Quiz
  • Encrypting with a Caesar Cipher
  • +3 more

8.11 Digital Information Quiz

  • Digital Information Quiz
  • Digital Information Badge