Computer Science
Grade 1
20 min
Draw a Circle, Again and Again
Drawing multiple circles in a row.
Tutorial Preview
1
Introduction & Learning Objectives
Learning Objectives
Identify a repeating action in a set of instructions.
Explain that a 'loop' means to repeat something.
Use a 'repeat' block to draw multiple circles.
Predict the outcome of a simple loop that draws circles.
Change the number in a loop to draw more or fewer circles.
Have you ever wanted to draw a hundred polka dots? π¨ That would take so long!
Today, we will learn a magic trick for computers. It's called a loop! A loop helps the computer do the same thing again and again, super fast.
Real-World Applications
A blinking light on a toy π¦
Clapping your hands to a song π
A bouncing basketball π
Wheels on a bus going 'round and 'round' π
2
Key Concepts & Vocabulary
TermDefinitionExample
Instruction β‘οΈAn instruction is one step for the computer to do. It's like a single command.A single instruction is 'Draw one circle.' π΅
Sequence π’A sequence is a list of instructions in the right order. Like steps 1, 2, 3.First, 'Draw a circle.' Then, 'Move forward.' That is a sequence.
Repeat πTo repeat means to do the exact same thing over again. Like saying 'hello' two times.You can repeat the action of bouncing a ball.
Loop πA loop is a special instruction that tells the computer to repeat other instructions.A loop can tell the computer: 'Repeat drawing a circle 3 times.' π΅π΅π΅
Pattern β¨A pattern is something we see again and again. Loops help us make patterns!A ladybug's spots make a pattern. π...
3
Core Syntax & Patterns
The Repeat Block
REPEAT [number] TIMES [ DO ACTION ]
Use this block to make an action happen many times. Put the action you want to repeat inside the block.
The Loop Pattern
1. Find the action that repeats. 2. Put it inside a loop. 3. Tell the loop how many times to repeat.
This is how we think like a coder! We look for patterns to make our job easier.
4 more steps in this tutorial
Sign up free to access the complete tutorial with worked examples and practice.
Sign Up Free to ContinueSample Practice Questions
Challenging
You want to draw a stack of 4 blocks π§±. The instructions are: "1. Draw a block. 2. Move up. 3. ???". What is the missing instruction to finish the stack?
A.Stop
B.Repeat steps 1 and 2 three more times
C.Draw 4 blocks
D.Move down
Challenging
A robot is making a fence: |-| |-| |-|. The robot's loop is broken. It only draws: | . What part of the instruction is missing from the loop?
A.Draw a vertical line "|"
B.Move right
C.Draw a horizontal line "-" and move right
D.Repeat
Challenging
Look at two programs. Program A: "Draw circle. Draw circle. Draw circle." Program B: "Repeat 3 times: Draw circle." Which is a better way to tell a computer, and why?
A.Program B is better because it's shorter and easier to change
B.Program A is better because it's longer
C.They are both the same
D.Program A is better because it's simpler to read
Want to practice and check your answers?
Sign up to access all questions with instant feedback, explanations, and progress tracking.
Start Practicing Free