Introduction to Loops
In this lesson, you will be introduced to the functionality of loops.
We'll cover the following
Introduction
Suppose we have 1000 boxes in a warehouse. We want a robot to move all boxes from one point to another. The robot is pretty dumb, so we must teach it how to move one box in great detail. We will provide the robot with the following instructions:
-
Go to point A.
-
Lift the box and load it.
-
Move to point B.
-
Unload the box here.
Then, we will ask it to repeat the same steps for the rest of the boxes until there are no more boxes at point A.
Get hands-on with 1400+ tech skills courses.