In this lesson, students will explore the creation of repetitive designs using variables in the Artist environment. Students will learn how variables can be used to make code easier to write and easier to read. After guided puzzles, students will end on a free play level to show what they have learned and create their own designs.
Variables are essentially placeholders for values that might be unknown at the time that you run your program or for values that can change during the execution of a program. These are vital to creating dynamic code because they allow your program to change and grow based on any number of potential modifications. This stage reinforces the use of variables, using the most basic capabilities of setting and using them.
Students will be able to:
- assign values to existing variables.
- utilize variables in place of repetitive values inside of a program.
- use variables to change values inside of a loop.
Note: You will need to create a free account on code.org before you can view this resource.