Back to Big Idea 3: Algorithms & Programming

Lesson PreviewLesson 1 of 18 in this unit

3.1 Variables and Assignments

Part of Big Idea 3: Algorithms & Programming in AP® Computer Science Principles. Read the opening section, then create a free account for the full interactive lesson, practice, and progress tracking.

Understanding Variables in Programming

A variable is a fundamental concept in programming that serves as an abstraction for storing a value. It acts as a named container that holds information, allowing a program to reference and manipulate data. A variable can store a single value or a collection of values such as lists or arrays. The ability to change the stored value makes variables essential for dynamic computing.

Continue the full lesson in Stellar

Create a free account to unlock the remaining sections, checkpoints, course practice, and progress tracking for AP® Computer Science Principles.