Have you ever had many blocks of your program that repeat? This block will shorten your program significantly when this happens!

To access the full video please subscribe to FLLCasts.com
- #2164
- 23 Jul 2024
The repeat block is the second block in the orange Control section.
The repeat block executes everything placed within it a specified number of times. If your program contains many identical blocks, you can use this block to shorten it! Simply place the repeating blocks inside it and delete the duplicates. The block has one setting: the number of repetitions. By default, it's set to 10, but you can change it to any number you like!
Courses and lessons with this Tutorial
This Tutorial is used in the following courses and lessons

Level A2 - History and Mythology - Robotics with LEGO SPIKE Prime
This is the second level of the LEGO Robotics Curriculum for second, third, and fourth-grade students.
In this level, we will focus on History and Mythology, with each lesson covering a different aspect of the ancient world. You will learn about a new distance sensor that uses ultrasound to help a watchtower robot detect invaders. We will also introduce new concepts such as loops, degrees, and a third motor. Additionally, you will learn how robots can perform two different tasks simultaneously.
- 28
- 0:00
- 65

Lesson 2 - Chichen Itza
Introduction
Today's robot will have the tough task of building a pyramid like the one in Chichen Itza!
What does the pyramid in Chichen Itza look like?
Chichen Itza was one of the largest Mayan cities, flourishing from around 600 to 1200 AD, over 1000 years ago! At its heart lies its most famous structure: the Temple of Kukulcán. Today, we'll attempt to "build" this iconic pyramid. Its unique form is known as a step pyramid due to the steps leading to the top.
The step pyramid is composed of concentric squares of varying heights. In this lesson, we will learn how to program the robot to move in a square, and then we'll work on making the squares concentric to resemble the pyramid!
- 3
- 5
- 10
- 3d_rotation 1