Variables

Remind students how variables help store pieces of information that can change. They can help keep track of things that happen to Dash. Discuss examples of variables.

  • Let’s say my wallet has a variable: the amount of money that’s inside it! First, my wallet has 20 dollars inside it, so the variable is 20 dollars. Then I buy a bag of lollipops and take out 5 dollars. Now the value of my variable is 15 dollars!
  • We can set a variable for the distance Dash should move. Then we can change that variable during the program to change Dash’s movement.

Complete and Continue