WARNING: This program has a bug. Even though it runs, it doesn't do what we want. This bug is called a logic error.

Rule: Logic errors cause programs to run incorrectly. Working programs accomplish a goal.

  • Click Run and see what happens.
  • Debug this program so that the person sprite glides to the bike!
  • Remember, in a coordinate pair the x-coordinate goes first and the y-coordinate goes second.

stage.set_background("silo") sprite = codesters.Sprite("person12") sprite.set_size(.5) sprite.go_to(0, 0) sprite.glide_to(-200, -50)