Activity: Functions

FUNCTIONS: There is a function defined in the code editor. Let's see how it works!

A function is a named block of code that does a specific task.

  • Click Run and look at the stage. What happens? We need a function call!
  • From , drag out Function Call so that it is under the function. Don't indent this code!
  • Change my_function() to python_stamp(). Click Run now and see what happens!

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support