Lesson 10: Programming (loops)
April 28th, 2021
![Guest Post] 11 Programming Languages To Learn For New Opportunities - GQR](https://www.gqrgm.com/wp-content/uploads/2019/09/2.-Blog-Banner-Template.jpg)
Welcome back everyone!! Today we are going to talk about loops. A loop is nothing more than a repetition of something as many times as we want, as long as we want or as long as a condition is fulfilled. For example, if we are in a class with 20 people and I want to share my 20 candies, I will have to give each person a candy, and repeat this action 20 times. In other words, I have made a loop in which I have repeated the action of giving a caramel to a person 20 times. We can also talk about taking steps on tiles. We imagine that we are just taking steps from a tile and want to reach the end of the corridor. There are 15 tiles in between, so I'll have to take 15 steps to get it. If we put the 15 shares together in one order, it would be a loop. An example of how we would show the students loops can be seen in Primary Code down below:



















Comments
Post a Comment