S15 Resource sheet 2

At this level, we are looking at a spiral path

Describe the shape of this spiral. Think about the direction and number of steps needed for each turn. Can you find a pattern?

from van import Van

my_van = Van()


num = 1
 		
while not my_van.at destination():
    my_van.turn_right()
    for count in range(num):
        my_van.move_forwards()
    num = num + 1					

Explain how this program works, using the word variable:

Last updated