sum() function : sum « List « Python Tutorial






a = [6, 4, 5]
print sum(a)
print sum(a, 5)
a = [6., 4., 5.]
print sum(a)








7.25.sum
7.25.1.sum() function