Parameter vs Argument

A parameter is the named placeholder listed in a function's definition; an argument is the actual value you pass in when you call that function.

General Programming

Think of a parameter as a labelled slot and an argument as the thing you put into it. In 'def greet(name)', name is the parameter; in 'greet("Ada")', "Ada" is the argument.

Examples

Python

def greet(name):        # name is the parameter
    print("Hi", name)

greet("Ada")            # "Ada" is the argument

Output:

Hi Ada

Learn it in a lesson

See also

Back to the Dictionary