Argument

noun

say it: “AR-gyuh-ment” /ˈɑːrɡjəmənt/

The actual value you hand to a function when you call it; it fills in one of the function's parameters.

What is an argument in Python?

An argument is the actual value you hand to a function when you call it. It fills in one of the function's parameters.

def greet(name):
    print(f"Hi, {name}!")

greet("Priya")  # "Priya" is the argument

In a sentence

  • “In greet("Priya"), "Priya" is the argument.”
  • “The function takes two arguments: a price and a tax rate.”

Level: Apprentice · More Python terms at this level

Updated

In other subjects