Spotting patterns is one of the most useful skills in coding. Once you see what repeats, you can write it once and loop it. Year 2 coders tackle longer patterns and find the part that repeats.
Apa yang akan dipelajari anak anda
- Continue patterns with three or four parts
- Find missing items in a pattern
- Identify the repeating unit of a pattern
- Connect repeating units to loops
From patterns to loops
A pattern like 🔴 🔴 🔵 🔵 🔴 🔴 🔵 🔵 is the unit 🔴 🔴 🔵 🔵 repeated. In a program, that becomes “repeat 2: red, red, blue, blue”. Finding the unit is exactly how coders shorten their code.
Contoh soalan
Berikut ialah beberapa soalan seperti dalam misi pertama. Bolehkah anda menjawabnya?
1. What comes next in the pattern?
- ?
- 🟢
- 🔴
- 🔵
Tunjuk jawapan
Jawapan: 🔴. The pattern repeats 🟢 🟢 🔴. After 🟢 comes 🔴.
2. What comes next in the pattern?
- ?
- 🍎
- 🍓
- 🍌
Tunjuk jawapan
Jawapan: 🍓. The pattern repeats 🍓 🍓 🍎. After 🍓 comes 🍓.
3. Which picture is missing from the pattern?
- ?
- 🐵
- 🐰
- 🐶
Tunjuk jawapan
Jawapan: 🐰. The pattern repeats 🐵 🐰 🐰, so the missing picture is 🐰.
4. AB pattern or ABC pattern?
- 🍎🍌🍎🍌
- 🐱🐶🐭🐱🐶🐭
- 🔴🟡🔵🔴🟡🔵
- ☀️🌙☀️🌙
Bakul: AB · ABC
Tunjuk jawapan
Jawapan: AB: ☀️🌙☀️🌙, 🍎🍌🍎🍌 · ABC: 🐱🐶🐭🐱🐶🐭, 🔴🟡🔵🔴🟡🔵. Count how many different things repeat.
Tip untuk orang dewasa
- Make bead or Lego patterns and ask, “What’s the part that repeats?”
- Clap rhythms and repeat them.