Activity: Change the Text
I'M FINISHED WITH HOUR OF CODE!
img

STEP 5: Let's customize that text!

The text that appears on the stage is a string. This is a letter, word, or sentence in quotation marks. They appear green in code. In this example, the string that's displayed is "Hello in red."

You can change the string so that it matches the scene on the stage.

  • Change the string to, "I went to the park!"

stage.set_background("park") sprite = codesters.Sprite("person3") sprite.glide_to(-100, 50) text = codesters.Text("Hello in red.", 100, 200, "red")
Support