Answers for "python add all items in list"

2

python add all items in list

myList = [1, 2, 3, 4, 5, 6]
sum(myList)
# output: 21
Posted by: Guest on July-29-2021
16

python sum of list

>>> list = [1, 2, 3]
>>> sum(list)
6
Posted by: Guest on January-27-2020

Code answers related to "python add all items in list"

Python Answers by Framework

Browse Popular Code Answers by Language