STEP 8: We'll be making each stick figure dance, so we need to return all the parts of the person in a list!

  • From LOGIC, add Empty List inside the function block and change its variable name to person.
  • Add all the shapes to the list like this: [head, body, arms, left_leg, right_leg]
  • In drag Return Statement in the function. Change the variable after return to person.

The return statement will allow us to use the list of shape sprites outside the function!

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)