List comprehension in Python

List comprehension applies the function / operation provided over the elements of the list
square_list = [x**2 for x in [1,2,4]]
print(square_list)


Output
[1, 4, 16]