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