squared sum of all elements in list python

Solutions on MaxInterview for squared sum of all elements in list python by the best coders in the world

showing results for - "squared sum of all elements in list python"
Simón
25 Apr 2019
1lst = [1,2,3,4]
2squared_sum = sum(i**2 for i in lst)
3squared_sum