list square python

Solutions on MaxInterview for list square python by the best coders in the world

showing results for - "list square python"
Juan Martín
20 Feb 2020
1l1 = [1,2,3,4,5]
2
3l2 = [x**2 for x in l1] 
4l2
5>>> [1,4,9,16,25]