A function is a named, reusable block of code that performs a specific task and can be called multiple times.
A variable is a named storage location in a program that holds a value which can change during execution.