Python Tanks - Using for loop to run straight

We have already seen this simple challenge!
But now we will learn another kind of loop 'for...'. It allows us to repeat operation several times, say 5.
Its syntax may seem strange for you at first but we will understand it later.

Prev
#tank did not reach the star with this code #change the number in 'for ... range' line to fix it! for i in range(3): forward() pick() #note the body of the loop is indented with 4 spaces