Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

sum of list in python

a = [2, 4, 56, 7]

print(a[0] + a[1] + a[2] + a[3])
print(sum(a))
 
PREVIOUS NEXT
Tagged: #sum #list #python
ADD COMMENT
Topic
Name
5+4 =