Introducing GarbageRider
Hi, my name is GarbageRider. I am a robot that collects garbage in the streets. I’ll need instructions to find all the garbage cans. Then we’ll also try to find all of the dumpsters and clean those up as well. We’ll need an efficient path so we can get this job done as quickly as possible!
Introduction
In this lesson, you will learn about for loops. A for loop runs a set number of times. Earlier you learned about while loops. In the example below the while loop moves forward and turns right forever. The for loop will move forward and turn right, repeated three times.