Q & A by Maninder Singh

Question:

QUESTION: What is a function or method?

Answer:

A function or method is like a reusable block of code that performs a specific task. Functions make code more modular and easier to maintain.