Contents
Why Code?. . . . . . . . . . . 4
Take a Tour. . . . . . . . . . . 6
Let’s Get Started! . . . . . . . . 8
Sequence. . . . . . . . . . . 10
Problem-Solving . . . . . . . . 11
Draw Squares . . . . . . . . . 12
Add a Triangle. . . . . . . . . 14
Debugging . . . . . . . . . . 16
Repeat Loops . . . . . . . . . 17
Patterns That Repeat. . . . . . . 18
Draw Flowers with Functions. . . . . 26
More Flowers with Functions. . . . 28
Nested Functions . . . . . . . . 30
Simplifying with Functions. . . . . 32
For Loops . . . . . . . . . . . 33
For Loop Spirals . . . . . . . . 34
More Spiral Designs . . . . . . . 36
A Grand Snowflake. . . . . . . 38
Follow the Code. . . . . . . . 40
Review. . . . . . . . . . . . 41
Get Inspired!. . . . . . . . . . 42
Try It Yourself!. . . . . . . . . 44
Answer Key. . . . . . . . . . 46