Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum with conditional python

sum(i for i in array if array.index(i) % 2 == 0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #sum #conditional #python
ADD COMMENT
Topic
Name
6+2 =