def eval(): y = [] x = -2. while x <= 2.: y.append(f(x)) x += .3 return y def f(x): return (x+1)/(x*x) print(eval())
Standard input is empty
[-0.25, -0.24221453287197234, -0.2040816326530612, -0.08264462809917346, 0.31250000000000044, 2.000000000000002, 20.000000000000036, 109.99999999999969, 8.749999999999995, 3.4693877551020393, 1.9999999999999991, 1.3609467455621298, 1.0156249999999998, 0.8033240997229916]