STEP 7: Let's use a loop with our list to create the pets!

  • In LOGIC, click on . Drag Loop through List to the bottom of your code.
  • On the loop creation line, change the list variable name from my_list to pet_list.
  • In GRAPHICS, click and drag out Sprite at Position indented inside the loop.

Why do we only see the codesters sprite on stage even though there are three image labels in the list?

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)