STEP 3: We're playing basketball, so let's change the image of our sprite from a person to a player!

Symbols are important! Be sure you don't delete the quotes " " or parentheses ( ) when making changes.

  • Click into the code editor and change the sprite's image label from "person1" to "player1".
  • Make sure you don’t delete the quotes " " or parentheses ( ).
  • Click Run after you've made your changes to see them on the stage.

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

stage.set_background("halfcourt") sprite = codesters.Sprite("person1")
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)