STEP 4: We'll pass arguments into the function in the call line. This will assign a value to each function parameter!

  • Drop Call with Parameters OUTSIDE the function block and change the function name to stick_person().
  • Change the first argument in the call line from my_var1 to -100. This will be the value of x in the function!
  • Change the second argument in the call line from my_var2 to 0. This will be the value of y in the function!
  • After 0, add a comma followed by the string "purple". This will be the value of our third parameter, color!

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)