Functions

Telling Tina what to do can get pretty repetitive. To save ourselves from having to type things over and over again, we use functions. To define a function for Python, we do this:

def function_name():
   print "The function's contents go here"

Defining a function doesn’t do anything but tell Python to remember it. We’ll have to call the function by name for that to happen. In this ecample you can see that function_one() never gets to print its text, while function_two() does:

def function_one():
   print "Function One's printout"
   
def function_two():
   print "Function Two's printout"
   
function_two()

Can you figure out how to call function_one()?