Functions gather variables and logic needed for performing an action and organize them in a single place.

This function performs a greeting.

You can spot a function by the use of the func keyword. It lets Swift know we're planning on writing one.