FUNCTIONS: There is a new function defined with two parameters that control the text and color of the stamp.

Parameters are variables created on the function definition line that are just for use within the function.

  • Click Run and read the error message. text_stamp() has two parameters so it requires two arguments!
  • Edit the function call at the bottom of the program to pass in two arguments, one for text and one for color.
  • The function call should look like this: text_stamp("Python", "purple"). Click Run to see it!

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)