Please enable JavaScript to use CodeHS

CodeHS Glossary


Parameters Python

Pieces of information you can give to functions when you define them. When the function is called the arguments are the data you pass into the function's parameters. Parameter is the variable in the declaration of the function. Argument is the actual value of this variable that gets passed to the function. ``` def add(a,b): return a + b # a and b are the parameters add(2, 3) # 2 and 3 are the function's arguments ```