Activity: Strings

STEP 2: Let's change the sprite's image label! An image label is the text we use to create a specific sprite on stage.

  • Replace "person4" with the image label of any sprite you choose, for example, "person1".
  • Be sure to leave the quotes around the text!

We call anything that is in quotes a string. A string could contain words, letters, sentences, or symbols.

Example: "Strings are always green and surrounded by quotes."

stage.set_background("concert") sprite = codesters.Sprite("person4")