STEP 12: Let's make the stick figures dance using a new function!

  • In LOGIC, go to and drag out Define Function with Parameter.
  • Change the name of the function to dance() and the parameter to my_list.
  • From , drop Loop through List indented inside the function and change value to sprite.
  • In GRAPHICS and , drag Move Up indented inside the loop. It should be indented twice!

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)