Jed Rembold
January 14, 2026

main
function)
import karel
def main():
"""Draws a smiley face!"""
move_to_leye()
draw_eye()
move_to_reye()
draw_eye()
move_to_nose()
draw_nose()
move_to_mouth()
draw_mouth()
def move_to_leye():
"""Moves up to place the first eye"""
move()
def draw_eye():
"""Places a one beeper eyeball"""
put_beeper()
def move_to_reye():
"""Moves across the top of the world to the right eye location"""
turn_right()
move()
move()
move()
def move_to_nose():
"""Moves to the right side of the nose"""
turn_left()
turn_left()
move()
turn_left()
move()
turn_right() # reorienting to prep for line of beepers for nose
def draw_nose():
"""Draws a 2 square flat nose starting from the right"""
put_beeper()
move()
put_beeper()
def move_to_mouth():
"""Moves to the left side of the smile"""
move()
turn_left()
move()
def draw_mouth():
"""Draws a smile from the left to the right"""
put_beeper()
move()
turn_left()
move()
put_beeper()
move()
put_beeper()
move()
turn_left()
move()
put_beeper()
def turn_right():
"""Turns Karel to the right"""
turn_left()
turn_left()
turn_left()