Loops executing an action-block multiple times. So you can control how often a specific part of your code is run.
You have to know 3 things to use loops:
- What do you want yo repeat?
- How often do you want to repeat it?
- What should be changed with every iteration?
There are different versions of loops and we will have a closer look at them.