Ask Your Question

Revision history [back]

Use python's built-in map function:

f(x) = x*exp(x)
L = [1,2,3,4,19]
M = map(f, L)