S14 Resource sheet 2

Python Planner Sheet for Level 98

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():

elif: 


else:

To create a repeat loop:

for count in range(n):

use any name for count, and the correct number for n

To define a procedure:

def procedurename():

use your own word in place of procedurename

To call your procedure

procedurename():

Helping hand

This is the structure of the code. You need to finish the lines of code yourself while not my_van.at_destination():

while not my_van.at_destination():
    if  my_van.is_________
        my_van.move______________
    else:
        my_van.turn_ _____________

My Code in Python for Level 98

from van import Van

my_van = Van()

Last updated