DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
squared sum of all elements in list python
lst = [1,2,3,4] squared_sum = sum(i**2 for i in lst) squared_sum
PREVIOUS
NEXT
Tagged:
#squared
#sum
#elements
#list
#python
ADD COMMENT
Topic
COMMENT
Name
1+1 =
Submit