Activity: Change Name
img

STEP 9: Now let's make the sprite greet YOU by name!

  • Find the .say("Hello, name") command inside the click event.
  • Click into the code editor and change "name" to your own name.
  • Be sure not to delete the quotation marks " " or the indentation.
  • Click Run. Wait for the sprite to stop moving, then click on it.

stage.set_background("winter") sprite = codesters.Sprite("fox") sprite.move_down(150) stage.wait(2) sprite.move_right(50) def click(sprite): sprite.say("Hello, name") sprite.event_click(click)
Support