Home›Lesson Plans›Computer Science›Programming · Grade 8

Arrays & Lists

Eighth graders store many values in one structure — an array or list. They learn to index items (counting from 0), find the length, and iterate over every element. They match the key terms, then build and process a list.

Grade 8Arrays & Lists50 minutes1 class periodCSTA / ISTEExplicit teaching4 StandardsCSTA
Start the Lesson
Assign or share this lesson

Copy link works with Canvas, Schoology, Moodle and any other LMS — paste it in as a resource or assignment.

Lesson at a Glance

Everything you need before the bell rings

Learning Objectives

Students will be able to…

  • ✓Explain an array / list.
  • ✓Use an index (from 0).
  • ✓Find the length.
  • ✓Iterate over elements.
Essential Question

How do you store and work with many values at once?

0
Lesson Phases
0
Vocabulary Terms
0
Standards Aligned
0
Interactive Task
Match It · Interactive

Match the List Term

Project this and match each term to its meaning — tap the term, then tap the meaning.

📋 Match each list term to its meaningTry it
Term
Meaning
Now tap the meaning!
The Lesson · Use → Modify → Create (a coding progression with Unplugged practice)

50 minutes, five moves

Tap any phase to open the teacher moves and student actions.

1

Hook — One Name, Many Values

6 min

How would you store a week of temperatures in code?

👩‍🏫 Teacher Moves

  • Show 7 separate variables.
  • Ask for a better way.
  • Set the goal.

🎒 Student Actions

  • Look.
  • Guess.
  • Get ready.
2

Use — Arrays & Lists

12 min

Students use the idea.

👩‍🏫 Teacher Moves

  • Send students to Match the List Term.
  • Match each one.
  • Note index starts at 0.

🎒 Student Actions

  • Match.
  • Say.
  • Note it.
3

Modify — Change the List

13 min

Students modify.

👩‍🏫 Teacher Moves

  • Read item at index 2.
  • Add and remove an item.
  • Find the length.

🎒 Student Actions

  • Read.
  • Edit.
  • Count.
4

Create — Process It

13 min

Students create.

👩‍🏫 Teacher Moves

  • Build a list of 5 values.
  • Iterate and print each.
  • Find the max or total.

🎒 Student Actions

  • Build.
  • Iterate.
  • Compute.
5

Reflect — Reflect

6 min

Students close.

👩‍🏫 Teacher Moves

  • Say the first index number.
  • Say what iterate means.
  • Complete the exit ticket.

🎒 Student Actions

  • Say it.
  • Say.
  • Complete the exit ticket.
Standards Alignment

Built to the standards you report on

Aligned to the CSTA K-12 Computer Science Standards and the ISTE Standards for Students.

CSTA
2-AP-11

Create clearly named variables that store data.

CSTA
2-AP-14

Create procedures to reduce complexity with data.

CSTA
2-AP-10

Use flowcharts/pseudocode to plan an algorithm.

ISTE
5 Computational Thinker

Organize data to build solutions.

Differentiation

One lesson, every learner

Multilingual Learners

ELL / EMERGING READERS
  • Numbered row of boxes.
  • Label index positions.
  • Point to each element.

Support & Access

IEP / 504
  • Use a 3-item list.
  • Index the first item only.
  • One term at a time.

Stretch & Extend

GIFTED / EARLY FINISHERS
  • Use a 2D list (a grid).
  • Sum a list with a loop.
  • Search for a value.
Materials

What to gather

  • 📽️Screen / board
  • 📋Term cards
  • 💻Match the List Term
  • 🐍Python / editor
  • 📓Notebooks
  • 🎫Exit-ticket slips
Vocabulary

Key terms — hover for a quick definition

arrayan ordered collection of valueslista flexible, changeable collectionindexan item position (starting at 0)elementone item in the collectionlengthhow many items it holdsiteratevisit each item in turnappendadd an itemtraversego through every element
Evaluate

Exit Ticket

Preview the three formative checks. Tap “Sample answer” to see what mastery looks like — hide them before you print for students.

QUESTION 1
What index is the first item?
0.
QUESTION 2
What does “length” tell you?
How many items the list holds.
QUESTION 3
What does “iterate” mean?
Visit each item in the list in turn.

Reflect: arrays & lists.

Have students build a 5-item list and find its length. A printable arrays worksheet is in the Computer Science library.

Study · Flashcards

Study the key terms

Tap a card to flip it, then rate whether you knew it. Built from this lesson’s vocabulary.

🃏 CS Arrays and Lists (Grade 8)Flip
Card 1
Term
Tap to flip →
Meaning
0

Nice work!

Practice · Quiz

Check your understanding

A quick self-check with instant feedback, drawn from this lesson’s key terms.

📝 CS Arrays and Lists (Grade 8)Quiz
Score: 0
1 / 6
Question 1
0%

Nice work!

Practice · Worksheet

Printable worksheet

A print-and-go review sheet with a built-in answer key. Tap “Show answer key” to reveal answers, or print the clean version for students.

🖨️ CS Arrays and Lists (Grade 8)Print
Name: ________________________
Date: ____________

Part A · Write the word that matches each meaning

Word bank: append, array, element, index, iterate, length, list, traverse
  1. how many items it holds
  2. an ordered collection of values
  3. an item position (starting at 0)
  4. add an item
  5. go through every element
  6. visit each item in turn
  7. one item in the collection
  8. a flexible, changeable collection

Part B · Show what you learned

  1. What index is the first item?
  2. What does “length” tell you?
  3. What does “iterate” mean?
Answer key — Part A: 1) length · 2) array · 3) index · 4) append · 5) traverse · 6) iterate · 7) element · 8) list
Part B: 1) 0. 2) How many items the list holds. 3) Visit each item in the list in turn.