Page 155 - Beginning Programming with Pyth - John Paul Mueller
P. 155
insertion pointer is still indented because Notebook is waiting for you to provide the next step in the function.
4. Click Run Cell.
The function is now complete.
FIGURE 7-1: Define the name of your function.
FIGURE 7-2: Notebook awaits your next instruction.
Even though this is a really simple function, it demonstrates the pattern you use when creating any Python function. You define a name, provide any requirements for using the function (none in this case), and provide a series of steps for using the function. A function ends when the insertion point is at the left side or you move to the next cell.