# Make the robot walk over # three pyramids. def turn_right(): repeat(turn_left, 3) def up_step(): move() turn_left() move() turn_right() def down_step(): move() turn_right() move() turn_left() # 4 steps up and then 4 steps # down is one pyramid def one_pyramid(): repeat(up_step, 4) repeat(down_step, 4) # three pyramids in a row repeat(one_pyramid, 3) move() turn_off()