python sum of list
>>> list = [1, 2, 3]
>>> sum(list)
6
python list sum
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
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us