>>> def f(x): return x**3 - x +7 >>> f(10) 997 >>> f(1) 7 >>> def tabulate(a, b): for x in range(a, b, 1): print x, f(x) >>>tabulate(1, 6) 1 7 2 13 3 31 4 67 5 127 >>> def tabulate(a, b, f): for x in range(a, b, 1): print x, f(x) >>>tabulate(1, 6, f) 1 7 2 13 3 31 4 67 5 127 >>> def g(x): return 3 * x >>> tabulate(10, 15, g) 10 30 11 33 12 36 13 39 14 42