def square(sequence): result=[] for element in sequence: result=result+[element*element] return result
square([2])
[4]