fork download
  1. def my_fun(x, y):
  2. return (x**2 - y**2)/2*x*y
  3.  
  4. x = [i for i in range(1,9)]
  5. y = [i/5 for i in range(1, 9)]
  6.  
  7. print(list(map(my_fun, x, y)))
Success #stdin #stdout 0.04s 9336KB
stdin
Standard input is empty
stdout
[0.096, 1.536, 7.776, 24.576, 60.0, 124.416, 230.49599999999995, 393.216]