Working with Functions

One important point with functions in Python is how you reference them, so try putting the following in a Python file and executing it:

def getName():
  return "Geoff"

You will see the following output:
<function getName at 0x006C44F8>
What you are seeing here is a reference to the function and then an execution of it. There is a critical difference.

The next logical step in working with functions is to pass in a paramter, rather than just return something.

def SayHello(name):
  return "Hello" + name

This will output the following:
Hello Geoff