Programming with loops w48b

Hello! Today we are going to continue the series of blog posts about block programming, in particular, today we will discover block loops. Throughout the article we will be able to learn the properties of loops and the advantages they bring to programming. To do this, we will use the “Loops” activity from our Smile and Learn educational platform. p643q

The Smile and Learn educational platform has more than 7,500 educational activities for students from 3 to 12 years of age. On our platform, children can learn in a dynamic way various contents related to the main educational subjects, either in the classroom or at home. We have curricular content as well as content focused on social and emotional development, in addition to family play activities.

If you want to try it, you can request a demo of Smile and Learn for 30 days free of charge and without obligation
here
.

WHAT IS PROGRAMMING

Have you ever wondered how a computer works? We might think that it is an incomprehensible machine but, in reality, it has a very simple operation.

Programming is the language of technology and machines, but it is a very special language because we teach it to them.but it is a very special language because we teach it to them. Imagine you build a robot, assemble its parts and put it on the floor, but it doesn’t move. That robot needs us to teach it how to work, so we have to program it, that is, give you orders or instructions. To understand it better, read on!

LOOP BLOCKS

In the entry on block programming we learned that each block contains a different command, condition or event.
This brings us to a new type of block: the loop. This block allows us to repeat an action until the condition we set is met. There are different types of loops, but in our activity we will use the “for loop”, which allows us to repeat a sequence of movements a certain number of times.

LOOPING ACTIVITY

To understand it better, see in this example what happens to the girl when we send to theprogramming board a loop with a sequence of different movements.

As you can see, when we create the loop we select how many times we want it to repeat. Then, we introduce the movements inside. Very useful, isn’t it?

But we do not appear to have solved the activity, i.e., we have not met the programming objective. The girl has to mow the grass in the picture, let’s look at it more carefully.

If you look, there are 5 blocks of grass in front of the girl. It would be as easy as inserting five forward blocks on the board, but there is only room for four blocks. Therefore, we need a loop, which counts as a single block. The correct answer then, would be to move forward 5 times.

USEFULNESS FOR PROGRAMMING

Loop blocks allow us to use fewer blocks on the programming boards, in addition to saving repeated block sequences. Using the least number of blocks when programming is very important because it helps us to avoid errors. In addition, being efficient is one of the keys to being a great programmer.

WHAT ELSE CAN I LEARN?

If you liked the “Loops” activity, you can continue your learning with the next entries next entries of the blog on block programming. Specifically, we will learn about the conditional blocks. You will love it!
We remind you that you can try our

Smile and Learn educational platform

by requesting a

free demo
without commitment here. You will be able to discover all the activities, games and interactive stories it contains. We are waiting for you!

Sandra Fernandez

Smile and Learn pedagogical team

More entries d646

  • What are language development disorders and how can we help at home and at school?

    What are language development disorders and how can we help at home and at school? 7172u

    14 de May de 2025 Sin categorizar
  • Readings for Elementary Students with Smile and Learn’s Leveled Content

    Readings for Elementary Students with Smile and Learn’s Leveled Content 705u35

    23 de April de 2025
  • Can Logical Thinking Be Taught? A Guide by Smile and Learn

    Can Logical Thinking Be Taught? A Guide by Smile and Learn 63345d

    3 de April de 2025 Sin categorizar
  • How to Help Students Recognize and Manage Their Emotions: Fostering Emotional Intelligence in the Classroom

    How to Help Students Recognize and Manage Their Emotions: Fostering Emotional Intelligence in the Classroom 5q1l3h

    19 de March de 2025 Sin categorizar

Share 4w37y

Únete a nuestra newsletter 6k2l4m

Al hacer clic en «Enviar», acepto el tratamiento de mis datos según se describe en la política de privacidad. Mis datos personales serán tratados por Smile and Learn Digital Creations, S.L. con la finalidad de gestionar la recepción de la newsletter. Para el ejercicio de tus derechos y más información consulta nuestra Política de Privacidad.

© 2023 Smile and Learn Digital Creations. Todos los derechos reservados.