Sovi.AI - AI Math Tutor

Scan to solve math questions

QUESTION IMAGE

vocabulary parameter a ______________ in your function def greet(name) …

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 _______
______________

Explanation:

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), name is a parameter.
  • Argument: An argument is the actual value that is passed into a function when the function is called. Using the previous greet function example, if we call greet("Mia"), "Mia" is the argument.
  • Module: A module in programming is a Python file (usually with a .py extension) 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.

Answer:

  • parameter: variable (in a function definition)
  • argument: value, pass, call the function
  • module: Python, a set of functions/classes/variables