Answers for "squared sum of all elements in list python"

1

squared sum of all elements in list python

lst = [1,2,3,4]
squared_sum = sum(i**2 for i in lst)
squared_sum
Posted by: Guest on February-11-2021

Code answers related to "squared sum of all elements in list python"

Python Answers by Framework

Browse Popular Code Answers by Language