Skip to content

Variables & Data

Summary

This chapter shows how to create, name, set, and change variables such as side length, angle, and number of sides in order to control the drawings built in earlier chapters. Students also learn about variable scope, the difference between global and local variables, basic data types such as numbers and strings, and a first look at the list concept. It builds on the computational thinking vocabulary from Chapter 1, the motion and coordinate work from Chapter 4, and the drawing work from Chapter 6. After completing this chapter, students will be able to use variables to make their drawing scripts flexible instead of hard-coded.

Concepts Covered

This chapter covers the following 16 concepts from the learning graph:

Concept Concept Impact Score
Variable 18
Creating A Variable 17
Naming A Variable 1
Setting A Variable 2
Changing A Variable 1
Variable Value 1
Side Length Variable 1
Angle Variable 1
Number Of Sides Variable 1
Variable Scope 3
Global Variable 1
Local Variable 1
Data Type 6
Number Data 2
String Data 2
List Concept 1

Prerequisites

This chapter builds on concepts from:


TODO: Generate Chapter Content