Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add up everything in a list python

num = [1,2,3,4]

print(num.sum())
#We use the .sum() function for the adding of everything
 
PREVIOUS NEXT
Tagged: #add #list #python
ADD COMMENT
Topic
Name
6+5 =