In Python, functions must be defined before they are called. Thus a function definition must appear in a file prior to any calls to that function.