- Greeting someone is an algorithm that could be used in different contexts, with only minor changes. These changes could be the name of the person or the greeting could be altered slightly depending on the formality or context.
- A daily activity that could be replaced with a function would be checking work emails (not very exciting, I know). Perhaps the function is called and then the unread emails could be displayed.
You must log in to post a comment.