If we want to use transform a given list L into square value for each element.
L = range(1,10)
for x in L:
print(x*x)
L2 = []
for x in L:
L2.append( x*x )
print(L2)
L3 = list( map(lambda x: x*x, L))
print(L3)
L4 = [x*x for x in L]
print(L4)