STEP 10: Let's call stick_figure() again with new arguments to create a stick figure with different characteristics!

  • Drop Call Parameters Into Variable at the bottom of the code. Change the function name to stick_person.
  • Rename the return variable from my_var to person2. This will store the list being returned from the function!
  • Add three arguments in the parentheses of the function call: stick_person(0, 0, "red")

The argument values in the function call provide the values used for x, y, and color when the function runs.

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)