Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sum attribute in list

sum(c.a for c in c_list)
 
PREVIOUS NEXT
Tagged: #python #sum #attribute #list
ADD COMMENT
Topic
Name
2+7 =