from karel import *
for i in range(3): # repeat everything that follows 3 times
move(); turn_left() # Enter the next column and turn north
# use the for statement to tell Karel to go to the top edge
turn_right(); move() # go to the next column
turn_right() # turn south
# use the for statement to tell Karel to go to the bottom edge
turn_left() # turn east