Search⌘ K

Variables and Data Types

Explore the concept of variables as named storage locations in computer memory and their use in pseudocode. Understand the fundamental data types including numeric, string, and boolean, and how they store different kinds of data in programs.

We'll cover the following...

What is a variable?

Imagine that you have several objects that need to be stored in boxes. Each box can only store one object, and to keep track of which box contains which item, you label each box with a unique name. A variable is just like the box, except that it resides in computer memory. A variable stores a value and has a name to ...