def statement defines a function with a name. Can accept arguments .
See: Parameters
Example:
def hello(name):
print('Hello, ' + name)
hello('Alice')
Define, Call, Pass, Argument, Parameter #
The first line of the example above defines the function. The name variable is the parameter that an argument is passed to. The argument ‘Alice’ is passed to the function when the function is called. When the function is called ‘Alice’ is assigned to the name parameter. Make sense?