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:

  1. Variable
  2. Creating A Variable
  3. Naming A Variable
  4. Setting A Variable
  5. Changing A Variable
  6. Variable Value
  7. Side Length Variable
  8. Angle Variable
  9. Number Of Sides Variable
  10. Variable Scope
  11. Global Variable
  12. Local Variable
  13. Data Type
  14. Number Data
  15. String Data
  16. List Concept

Prerequisites

This chapter builds on concepts from:


TODO: Generate Chapter Content