• Parameters are the names that you use in the function definition to specify what kind of input values the function expects. They are like placeholders or variables that represent the input values

For example, in the function def add_two_numbers(a, b):, a and b are parameters.

  • Arguments are the actual values that you pass to the function when you call it . They are like expressions or constants that fill in the placeholders or variables.

For example, in the function call add_two_numbers(10, 20), 10 and 20 are arguments.


You can think of parameters as labels and arguments as data. Parameters define what kind of data the function can accept, and arguments provide the specific data to the function.

Go Ad-free
Davneet Singh's photo - Co-founder, Teachoo

Made by

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science, Social Science, Physics, Chemistry, Computer Science at Teachoo.