
You can overwrite the text that is displayed by using the SET.TEXT block.
SHAPES Toolkit - SET TEXT block
text = codesters.Text("Hello.")
text.set_text = ("Good-bye")
Note: Your code runs really fast so remember to add a STAGE.WAIT() between the 2 commands.