STEP 4: Time to begin customizing! Let's have a new background for everyone we invite!

  • Go to LOGIC and . Drag Define Function with Parameter into your program.
  • Change the name of the function to draw_card().
  • From GRAPHICS and , drag Set Background inside the function so it has a ···· in front of it.

The () after draw_card contains a variable. This is a function parameter! We will use it in our 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)