from karel.stanfordkarel import *
"""
Your job in the assignment is to add the necessary code to
instruct Karel to walk to the door of its house, pick up the
newspaper (represented by a beeper, of course), and then return
to its initial position in the upper left corner of the house.
"""
def main():
"""
You should write your code to make Karel do its task in
this function. Make sure to delete the 'pass' line before
starting to write your own code. You should also delete this
comment and replace it with a better, more descriptive one.
"""
pass
# There is no need to edit code beyond this point
if __name__ == "__main__":
run_karel_program()
from stanfordkarel import *
def main():
turn_left()
move()
turn_left()
if __name__ == "__main__":
run_karel_program()
Comments
Leave a comment