DEV Community

yugalakshmi
yugalakshmi

Posted on

Difference Between Parameters and Arguments

Parameters: Variables used in the function definition.

Arguments: Actual values passed during the function call.

Example:

def add(a, b):
print(a + b)

add(10, 20)

Output:

30

Here:

a and b are Parameters.

10 and 20 are Arguments.

Remember:

Parameters = Variables in function definition.

Arguments = Values in function call.

Top comments (0)