STEP 11: We'll use a list of sprites to create our ring of sprites placed around the world.

  • In the LOGIC tab, click on and drag out Loop through List.
  • Find the line for·value·in·my_list:¬ and change my_list to people_sprites.
  • In the GRAPHICS tab, click on and drag Sprite at Position inside the loop.

A command is inside the loop if it is indented 4 spaces and has a ···· in front of it.

stage.set_background_color("lightblue") # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(0, 0, 700, 100, "gold") sprite.turn_left(45) # sprite = codesters.Rectangle(x, y, width, height, "color") sprite = codesters.Rectangle(0, 0, 700, 100, "gold") sprite.turn_right(45) sprite = codesters.Sprite("earth") people_sprites = ['person1', 'person2', 'person3', 'person4', 'person5', 'person6', 'person7', 'person8','person9', 'person10', 'person11', 'person12'] rotate = 90