Learning to code
Scenario 3 - Iterative Loops
Operational Goals
- Ability to simplify algorithm notation by using iterative loops
Introduction to the Topic
The iterative loop block repeats any number of times the commands that are in it, e.g., a step up and a step right. An iterative loop (sometimes called a counter loop) is a programming technique that allows for multiple execution of the same instructions, without the need to list them all in sequence. This approach is particularly useful where repeated code fragments occur next to each other within the full sequence of code.
Task
Command: Arrange the code from blocks, set the appropriate step values, and lead Kodi to the finish. Remember to use the counter loop block.
Course I, Iterative Loops - Level 0 - Iterative Loop Construction
Course I, Iterative Loops - Level 0 - Board solution
Task
Command: Arrange the code from blocks, set the appropriate step values, and lead Kodi to the finish. Along the way, collect all the gold coins and pickaxes, which you will use to break the rocks blocking the way. Remember to use the counter loop blocks and directional actions.
Course II, Iterative Loops - Level 0 - Iterative Loop Repetition
Course II, Iterative Loops - Level 0 - Board solution
Manage Consents
Control which external services can process your data.
Essential Required
These features are essential for the proper functioning of the website and cannot be disabled.
Anonymous Analytics Required
Required for collecting aggregated statistics that help us understand how users interact with our site. Data is fully anonymous, contains no personal information, and we do not use cookies.
Extended Analytics
Allows analyzing traffic sources (where you came from), marketing campaign parameters (UTM), and navigation paths across subdomains. We use a cookie (7 days) to preserve this data.
External Media
Allows loading content from external services like YouTube or Vimeo.