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.

To navigate the page using the TAB key, first press ESC to exit the code editor.

stage.set_background("silo") sprite = codesters.Sprite("person12") sprite.set_size(.5) sprite.go_to(0, 0) sprite.glide_to(-200, -50)
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)