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" print(getName) print(getName())You will see the following output:
<function getName at 0x006C44F8> GeoffWhat 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 print(sayHello("Geoff"))This will output the following:
Hello Geoff