Parameter
Domain: Programming Fundamentals
π― Motivation
Functions need inputs to work with - parameters are the named slots that receive those inputs.
π Concrete Example
def add(a, b): return a + b - a and b are parameters. When you call add(3, 5), 3 goes into a, 5 into b.
π Analogy
The blanks on a form - βName: ____β and βAge: ____β. When someone fills in the form (calls the function), those blanks get values.