STEP 6: Now, let's assign a location for the net. We'll use its unique variable name to assign actions in the program.

  • Go to the section of the toolkit and drag Go To into your program.
  • Change the first number in the .go_to() command to 215 and change the second number to 175.
  • Change the name in front of the .go_to() command to net.

stage.set_background("halfcourt") sprite = codesters.Sprite("player1") sprite.go_to(-175, -150) net = codesters.Sprite("basketballnet")