Super Silly Code Detectives: Fun Preschool Coding and Pattern Lesson

Introduce young children to early coding concepts with this playful Code Detectives lesson. Children explore patterns, sort symbols, create pretend codes, follow movement instructions, and learn safe computer habits through hands-on activities using blocks, cards, drawings, and movement.

Previous Lesson
PDF

Super Silly Code Detectives

Materials Needed

  • Paper and crayons or washable markers
  • Building blocks or counting objects
  • Index cards or small pieces of paper
  • A toy magnifying glass, if available
  • Optional: a tablet or computer with adult supervision

Learning Objectives

By the end of the lesson, the child will be able to:

  • Notice and describe simple patterns in letters, numbers, and symbols.
  • Sort objects or cards by one feature, such as color, shape, or size.
  • Create a short pattern using drawings, objects, or pretend symbols.
  • Explain that computers follow special instructions, while people decide what the instructions mean.

Success Criteria

I can:

  • Find something that repeats.
  • Put similar things together.
  • Make my own silly code or pattern.
  • Tell an adult when I see something confusing on a computer.

Introduction: The Mystery Message

Hook: Show the child a card with a made-up message such as:

“BEEP BEEP — 1, 2, 1, 2 — ZAP!”

Say:

“Look! We found a silly computer message. Is it a real sentence, or does it look like a secret pattern? Today we will be code detectives. We will look, sort, count, and make our own pretend computer messages.”

Tell the child:

“We will look for patterns, play sorting games, and make a silly code. Computers use instructions, but people help decide what the instructions mean.”

Body

Part 1: I Do — Spot the Pattern

Place objects in a repeating pattern, such as:

red block, blue block, red block, blue block

Think aloud:

“I see red, blue, red, blue. The colors repeat. I think the next block should be red.”

Add one more object and ask:

  • “What do you notice?”
  • “What should come next?”
  • “How do you know?”

Make another pattern with sounds:

clap, tap, clap, tap

Say:

“Patterns can use colors, shapes, movements, sounds, letters, or numbers.”

Part 2: We Do — Sort the Detective Cards

Draw or write simple cards containing:

  • Shapes: circle, square, triangle
  • Colors: red, yellow, blue
  • Symbols: star, heart, dot
  • Numbers: 1, 2, 3

Work together to sort the cards. Give clear directions:

  1. “Put all the circles in one group.”
  2. “Put all the blue cards in one group.”
  3. “Now find cards with numbers.”

Ask:

  • “What is the same about these cards?”
  • “What is different?”
  • “Can one card belong in two groups?”

Quick check: Hold up two cards and ask, “Which card does not belong with this group? Why?” Accept answers based on color, shape, number, or another reasonable feature.

Part 3: We Do — Make a Movement Code

Create a simple pretend code together:

  • Star = clap
  • Circle = stomp
  • Triangle = touch your head

Show a sequence such as:

star, circle, star, triangle

Perform the sequence together:

clap, stomp, clap, touch your head

Say:

“Our symbols are instructions. We look at the symbol, remember its meaning, and do the action.”

Safety reminder: “We only follow instructions that are safe and given by a trusted grown-up. If a computer shows something confusing, we stop and ask an adult.”

Part 4: You Do — Create a Silly Code

Invite the child to choose one project:

Choice A: Drawing Code

  1. Draw three symbols, such as a sun, moon, and star.
  2. Give each symbol an action, sound, or word.
  3. Make a short message using the symbols.
  4. Ask an adult to “read” the message.

Choice B: Block Code

  1. Choose two or three block colors.
  2. Build a repeating pattern.
  3. Hide one block from the end of the pattern.
  4. Ask the adult to guess which block is missing.

Choice C: Pretend Robot

  1. Choose three safe actions, such as clap, turn, and wave.
  2. Give each action a pretend symbol.
  3. Show the symbols to the adult.
  4. Have the adult act like a robot and follow the code.

Encourage the child to explain:

  • “What does your symbol mean?”
  • “What should happen next?”
  • “Can you change your code to make a new pattern?”

Real-World Connection

Say:

“People use instructions every day. A recipe tells us what to do to make food. A traffic signal tells cars when to stop and go. A computer also uses instructions. We can look at instructions carefully and ask for help when they do not make sense.”

Formative Assessment

  • Ask the child to finish a repeating pattern.
  • Ask the child to sort cards by color or shape.
  • Ask the child to explain what one pretend symbol means.
  • Observe whether the child can follow a three-step movement code.

Summative Assessment: Code Detective Challenge

Give the child this challenge:

  1. Make a pattern with at least two repeating parts.
  2. Draw or build three symbols.
  3. Explain what each symbol means.
  4. Give the adult a short code to follow.
  5. Tell the adult one safe choice to make when a computer message is confusing.

Meets the goal when the child:

  • Creates or identifies a repeating pattern.
  • Uses at least three symbols or objects.
  • Explains the meaning of the symbols with words, actions, or pointing.
  • States that they should stop and ask a trusted adult about confusing computer instructions.

Differentiation

Support for a Child Who Needs More Help

  • Use only two colors or two symbols.
  • Start with an AB pattern, such as red-blue-red-blue.
  • Let the child copy a model before creating a new pattern.
  • Use gestures and spoken directions together.
  • Offer sentence starters: “I see ___.” “Next comes ___.”

Extension for a Child Ready for More

  • Create an ABC pattern, such as circle-square-triangle.
  • Make a code with four or more symbols.
  • Ask the adult to follow a code without showing the meanings first.
  • Find two different ways to sort the same cards.
  • Design a pretend code for cleaning up toys or feeding a stuffed animal.

Conclusion and Recap

Ask the child:

  • “What is a pattern?”
  • “What is a symbol?”
  • “What did your code tell us to do?”
  • “What should you do if a computer shows something confusing?”

Say:

“Today you were a code detective. You found patterns, sorted symbols, and made your own instructions. Computers use instructions, but trusted grown-ups help us understand them and keep us safe.”

Optional Follow-Up Activity

During the week, invite the child to find patterns at home, such as stripes on clothing, tiles on the floor, books on a shelf, sounds in a song, or steps in a daily routine. Ask the child to describe the pattern and invent a silly symbol for it.


Ask a question about this lesson

Loading...

Related Lesson Plans

Laundry Super Skills: A Fun Guide to Teaching Kids How to Do Laundry Safely

Turn laundry chores into a fun adventure! Our step-by-step 'Laundry Super Skills' guide teaches kids essential washing, ...

Everyone is Special: Preschool Lesson on Challenging Gender Stereotypes in Play

Engage preschoolers with this fun lesson plan about gender stereotypes, play, and friendship. Includes story time, toy s...

What Do Animals Eat? Fun & Easy Preschool Lesson Plan on Animal Diets

Engage preschoolers with this fun, interactive lesson plan about animal diets! Features matching activities and pretend ...

Fun Community Helper Lesson Plan & Activities for Preschoolers

Teach preschoolers about community helpers like firefighters, police, doctors, and teachers with this easy lesson plan f...

Boost Early Literacy Skills with Fun Vehicle-Themed Activities for Preschoolers: Learn Letters, Sounds, and Sight Words

Engage preschoolers in learning letters, sounds, and sight words like 'Stop' and 'Go' with this fun, vehicle-themed less...

Easy & Fun Preschool Lesson Plan: Activities to Teach Kids Body Parts

Teach preschoolers about their bodies with this fun & easy lesson plan! Features engaging activities like songs, stories...