fork download
  1. your_range = [value/10 for value in range(-20, 20, 3)]
  2. result = [((x+1)/x**2) for x in your_range]
  3. print(result)
Success #stdin #stdout 0.02s 9224KB
stdin
Standard input is empty
stdout
[-0.25, -0.24221453287197234, -0.2040816326530612, -0.08264462809917361, 0.3124999999999999, 2.0, 19.999999999999996, 109.99999999999999, 8.749999999999998, 3.469387755102041, 2.0, 1.36094674556213, 1.0156249999999998, 0.8033240997229917]