Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to add up a list in python

liste = [1,2,3,4]
tot = 0
for i in liste:
  tot = i + tot
print(tot)
 
PREVIOUS NEXT
Tagged: #add #list #python
ADD COMMENT
Topic
Name
8+1 =