add all integer values in list python code example
Example: 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])
def sum_mix(arr):
sumIntStr = sum(map(int, arr))
return sumIntStr
sum_mix(['5', '0', 9, 3, 2, 1, '9', 6, 7])