A function is a reusable block of code that performs a specific task.

It is like a “superpower” given to the program. Instead of repeating the same instructions, you create a function and call it by name whenever you need it.

💬 Discuss this resource on GitHub