Functions

Definition

  • **Functions **are blocks of reusable code designed to perform a specific task
  • They can be **called **or **invoked whenever **that task needs to be performed

Advantages

  • Functions make code abstract, removing redundant and repetitive code
  • Functions hide complicated details
  • Functions support general algorithmic methods with systemic variations
  • Functions **support **the division of labour