📅  最后修改于: 2022-03-11 14:47:20.544000             🧑  作者: Mango
To get the sum of a list in python, you just call the built in sum() function.
An example:
>>> lst = [3, 7, 1, 9, 4]
>>> sum(lst)
24