I am told to
Write a function, square(a), that takes an array, a, of numbers and returns an array containing each of the values of a squared.
At first, I ha
One more map solution:
def square(a): return map(pow, a, [2]*len(a))