The words parameter and argument are often used loosely, but the exam uses them precisely. A parameter is the name listed in the function definition; it exists only inside the function. An argument is the actual value you pass when calling the function. In def area(width, height):, width and height are parameters; in area(3, 4), 3 and 4 are arguments. When the function is called, each parameter is bound to its argument, and the parameter then behaves like a local variable for the duration of that call. A handy memory aid: parameters are placeholders in the definition, arguments are actual values in the call.
Keep reading for free
Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.