What is a function in Python?
A callable mapping from input arguments to zero, one or more output arguments. An #example is this:
def f(x):
return 2*x
i = 21
print "f({}) = {}".format(i, f(i))
Mentioned in
A callable mapping from input arguments to zero, one or more output arguments. An #example is this:
def f(x):
return 2*x
i = 21
print "f({}) = {}".format(i, f(i))