Function: A self-contained block of code that performs a specific task and can be called from other parts of the program.
Method:Similar to functions, methods also perform specific tasks but are associated with objects or classes in object-oriented programming.
Parameters:Values passed into a function or method when it is called. They provide necessary information for the function or method to execute correctly.