What is the argument of a function?
3 answer(s)
Answer # 1 #
In computer science terms: when you call a function like print("Hello")
, the "Hello"
part is the argument. Functions can have single, multiple, or even optional arguments.
Answer # 2 #
In mathematics and programming, an argument of a function is the input value you pass to it. For example, in f(x) = x + 2
, the value you substitute for x
is the argument.
Answer # 3 #
For deeper study, you can read this article on TutorialsPoint - Function Arguments.