That one is built in:

  sum([1, 2, 3]) == 6