STEP 5: Let’s use a list instead of making each sprite separately. The list will store image labels for creating sprites.

  • In LOGIC, click on . Drag List of Strings to the bottom of your code.
  • Click and drag out Variable Display
  • Change the variable in .Display() from my_var to my_list.
  • Change the x-coordinate argument in .Display() from -200 to -100.

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)