programming functions

A function is simply a “chunk” of code that you can use over and over again, rather than writing it out multiple times.

https://www.futurelearn.com/info/courses/programming-102-think-like-a-computer-scientist/0/steps/53095