num=[1,2,3,4] result=[] for x in num: result.append(x**2) print(result)