← Back to Library
Lesson PlanFreeFR
(Francais) F2: Unplugged - Variables
Level F, Lesson 2: Students will learn about the benefits of using variables when coding and in real life. Students will then practice using variables to create stories. Objectives Students will: Defi

Educational Standards
CSTA
ISTE
NGSS
Common Core
Wrap Up
Student Presentations
- Have student groups take turns sharing one of the stories they created. Encourage them to:
- Share the word/phrase ideas that they placed in each envelope (e.g., “We chose to use silly verbs because we wanted the dinosaur robot to be silly”).
- Describe how their story changed depending on which words were pulled out from each envelope.
- Encourage students to give each other feedback on their stories. Possible questions/feedback includes:
- “How did you (decide on which names to add to the ‘Names’ envelope)?”
- “What if you (added more planet names to your ‘Locations’ envelope)?”
Follow-Up Questions/Discussion
- How did variables help us complete the story? (Sample response: “Using variables allowed us to add our own words to a story in an easy way without having to rewrite the entire story.”)
- What would happen if we placed the wrong words in the wrong envelopes? How would the story change? (Sample response: “The story wouldn’t make sense. The color placeholder could be filled with a verb like ‘jump.’”)
- How could/did you write your own Dash or Dot story using variables?” (Sample response: “I could write a story using Dash or Dot but leave blanks for specific types of words so someone else could complete it.”)
Assessment
- Use our Evaluation Rubric to review students' work and presentations.
- [Optional] Share your students' work with the world using @logicsacademy and #dashanddot!
Independent Practice
Instructions
Have students work on the following activity in small groups (ideally 2–3 students).
- Distribute a Dash and Dot Libs Worksheet, 5 envelopes, and at least 20 index cards or pieces of cut paper to each group.
- Have groups create a labeled envelope for each of the following word categories: Adjectives, Verbs, Names, Locations, Colors.
- Have each group fill their envelopes by writing word/phrase ideas on separate index cards and placing them in the corresponding envelope.
- Have each group complete the story in the Dash and Dot Libs Worksheet by pulling words from their envelopes.
- Have them record their results by filling in the blanks.
- Encourage them to fill in multiple worksheets in the same manner.
- If time permits, have student groups write their own Dash and Dot stories that include the same types of variableplaceholders (e.g., adjectives, verbs, names, locations, colors).
- Have groups swap stories and complete each other's stories using words pulled out from their envelopes.
Guided Practice
Activity: Storytelling with Variables
- Say, “You know you can use variables to keep score in a game, but did you know you can use variables to write a story? Today we are going to use variables to complete a story. This story has placeholders (variables) for several missing words. We are going to come up with different pieces of information that can fit into these placeholders.”
- Show the class the labeled envelopes (i.e., Adjectives, Verbs, Names, Locations, Colors). Say, “These are the variables for our story. Each envelope represents a different type of variable.” Work with the class to brainstorm words/phrases for each envelope.
- Review parts of speech such as “verb” and “adjective,” as necessary.
- Write each word/phrase on a separate index card and place it in the corresponding envelope. For example, write the word “fly” on an index card and place it in the envelope labeled “Verbs.”
- Continue doing so until there are at least 4 index cards in each envelope.
- Alternatively, arrange students into 5 different groups. Assign each group a word category (e.g., “Locations”). Have them write down word/phrase ideas on separate index cards (e.g., park, pet store, Mars). Then have them place those cards in the corresponding envelope.
- Project a copy of the Dash and Dot Libs Worksheet.
- Read aloud the story with the class.
- For every blank space, have a student volunteer draw an index card from the matching envelope (e.g., “Colors”) and read aloud the word.
- Read the story a few times in the same manner.
- Encourage students to share their observations about how the story changed each time, depending on what cards were pulled from each envelope.
Quick Check
- How are variables used in your life? (Sample response: “I use variables when I log in to a website or game.”)
- How did we use variables to write a story? (Sample response: “The story had placeholders or variables. We then came up with pieces of information that could fit into each of the variables.”)
Instruction
Introduction
- Show Code.org’s video about variables: https://studio.code.org/s/coursef-draft/stage/5/puzzle/1
- Review the definition of variables: “Variables are placeholders for pieces of information that can change.”
- Brainstorm with students to come up with real-life examples of variables. For example:
- When you’re playing a game, you need to keep track of each person’s score. Each person’s score is a variable because it is a piece of information that changes over time as you play the game. You need to update the score each time someone earns a point in the game.
- Your username and password are variables on a website. On the login page, the username and password are blank because each user has a different username and password. These blank spaces are placeholders that can be filled in by each user.
Quick Check
- Predict how you think variables will be used in coding. (Sample response: “Variables will save pieces of information in our code.”)
Review
Function Review
- How have you used functions to program Dash?
- Sample response: “We used functions to program dances for Dash. We used the dance function over and over again when we were coding.”
- How did functions help make your code more efficient?
- Sample response: “We only had to code Dash’s dance one time. Then we could call that function over and over again.”
Code.Org Connections [Optional]
- Review Code.org’s activities about functions: https://studio.code.org/s/coursee-draft/stage/9/puzzle/9
- Say, “In these puzzles, you used functions to help you gather crops.”
- Ask, “What would your code look like without functions?”
- Sample response: “If I did not use functions, my code would be very long, as I would have to write the same bits of code over and over.”
- Ask, “How are functions different than loops?”
- Sample response: “Loops repeat bits of code over and over in the same location in the sequence, whereas functions can repeat bits of code in different places throughout the sequence where the user calls them.”
Before the Lesson
Prior Experience
Before this lesson, we recommend that students complete:
- Level A-E Lessons: All
- Level F: Lesson 1
- [Optional] Level A-E Challenge Cards: All
- [Optional] Level F Challenge Cards: F 1.1-1.3
Preparation
Create a labeled envelope for each of the following word categories: Adjectives, Verbs, Names, Locations, Colors.
