Functions

Suppose you wanted to make a peanut butter and jelly sandwich. Which list of instructions looks easier?:

  1. Get bread
  2. Get knife
  3. Open peanut butter
  4. Put peanut butter on knife
  5. Spread peanut butter on bread
  6. And so on, and so on ...
  1. Make a peanut butter and jelly sandwich

Functions are a way to group instructions.