S14 Resource sheet 1
Python Planner Sheet
Coding reminder:
The code snippets below are incomplete but are shown as a reference for the instructions you will use. Remember to use indents where needed.
my_van.move_forwards()
my_van.turn_left()
my_van.turn_right()
while not my_van.at_destination():
if my_van.is_road_forward():
my_van.move_forwards()
elif my_van.is_road_right():
my_van.turn_right()
else:
my_van.turn_left()
To create a repeat loop:
for count in range(n):
my_van.turn_left()
my_van.turn_right()
Use any name for count, and the correct number for n
To define a procedure:
def procedurename():
for count in range(2):
my_van.turn_right()
Use your own word in place of procedurename
To call your procedure
My Code in Python for Level ____
```