Activity: Call Flip

STEP 4: Let's call our flip!

Remember, a function only runs if it is called. We can call a function anytime after it is created!

  • From LOGIC, drop Function Call at the bottom of your program, OUTSIDE of the function.
  • Change the function name in the call line from my_function() to flip(). If you do not change the function name in the call line, you will get an error, because there is no function named my_function() in this program!

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
Support