A function looks something like this:
The word function tells the computer that the information to follow is in fact a function.
The next item "myfunction" is the name of the function. Each function has a "basket" which is used to specify what, if anything, can be passed as arguments to the function.
Inside the curly brackets is the action. This is what the function is doing.