Functions

Functions are like a blueprint that groups multiple strings together for reusability and simplicity. Complicated or redundant code can be placed inside a defined function and be called whenever the user wants to use the code within. This way, code can also be easier to maintain as users can just look at the code inside a function when there are bugs or updates needed and it will update that code whereever it is being executed in the overall script.

Built-in function: 'strlen' returns the length of a string
The number of characters in the string 'I go to UWM.' is 12.

User-defined function: a block of code that can be repeatedly used with different outcomes
I like to play volleyball.
I like to play tennis.