Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Sum items in a list with ints and strings in python

def sum_mix(arr):
    sumIntStr = sum(map(int, arr))
    return sumIntStr
sum_mix(['5', '0', 9, 3, 2, 1, '9', 6, 7])
 
PREVIOUS NEXT
Tagged: #Sum #items #list #ints #strings #python
ADD COMMENT
Topic
Name
1+9 =