QUESTION IMAGE
Question
vocabulary
parameter
a ______________ in your function
def greet(name)
print(\hello\, name)
argument
the __________________ you ______
into a function when you ________________
def greet(name):
print(\hello\, name)
greet(
ia\)
module
a __________ file that contains _______
______________
Brief Explanations
- Parameter: In programming, a parameter is a variable in a function definition. It acts as a placeholder for the value that will be input into the function when it is called. For example, in the Python function
def greet(name),nameis a parameter. - Argument: An argument is the actual value that is passed into a function when the function is called. Using the previous
greetfunction example, if we callgreet("Mia"),"Mia"is the argument. - Module: A module in programming is a Python file (usually with a
.pyextension) that contains a set of functions, classes, or variables. It's like a toolbox (as the image hints) that holds related code that can be imported and used in other Python programs.
Snap & solve any problem in the app
Get step-by-step solutions on Sovi AI
Photo-based solutions with guided steps
Explore more problems and detailed explanations
- parameter: variable (in a function definition)
- argument: value, pass, call the function
- module: Python, a set of functions/classes/variables