Please enable JavaScript to use CodeHS

AP Computer Science Principles in Python

Lesson 3.4 Variables

Description

In this lesson, students learn how to assign values to variables, manipulate those variable values, and use them in program statements. This is the introductory lesson into how data can be stored in variables.


Objective

Students will be able to:

  • Explain what variables are and what they are used for
  • Use the different types of variables in Python
  • Distinguish between declaring, initializing and assigning variables
  • Create their own variables with proper naming conventions
  • Print out the values stored in variables