python 对任意长度的数组求和

python sum a array which length is arbitrary

抱歉问了一个愚蠢的问题。
我想总结一个清单。但是列表的长度并不总是大于 2
所以 reduce 如果 len<2

会失败

这是我的代码

score = [('xxx', 1), ('yyy', 2)]
if len(score) >=2:
    result = reduce((lambda x,y:x[1]+y[1]), score)
elif len(score)==1:
    result = score[0]
else:
    result = 0

是否可以以一种优雅的方式在列表长度大于 2 时对数组求和?

sum:

result = sum(s[1] for s in score)