Coding · Grade 2
Explain and Improve a Program
Second graders explain programs by giving their purpose and steps, improve programs by making them shorter (loops) and clearer (good names and comments) without changing what they do, and improve an algorithm in a guessing game by always guessing the middle.
- 4 lessons
- About 75 minutes
- Explain and improve check: 8 questions
- Ways to answer: program with blocks, choose an answer, put code in order, highlight a text, match pairs and type a number
What learners will discover
- Explain what a program does: its purpose in one sentence, then its steps in plain words.
- Improve a program by making it shorter with loops, and test that it still does the same thing.
- Improve a program by making it clearer with good variable names and comments.
- Improve a search by guessing the middle in a higher-or-lower guessing game.
Lessons
-
Explain what a program does 4 steps2 practiceabout 15 min
-
Make it shorter 5 steps3 practiceabout 15 min
-
Make it clearer 5 steps3 practiceabout 15 min
-
Make it smarter: the guessing game 6 steps3 practiceabout 16 min
-
Explain and improve check 8 questions at the end
Keep exploring
Games to practice with
- Robot RoutesSnap together arrow, repeat and dance blocks to guide Bolt the robot home.
- Bug DetectiveA robot program almost works. Run it, spot the buggy block, and fix it.
- Mini-Game StudioMake a tiny game with rule blocks, test-play it, and share it once it can be won.
More 2nd grade coding
- 2nd Grade Coding Worksheets10 printable worksheets
Guide for grown-ups
- How to start homeschooling: a step-by-step guide for familiesA guide for parents · 7 min read