SyntaxFix
Write A Post
Hire A Developer
Questions
One more map solution:
def square(a): return map(pow, a, [2]*len(a))