DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+4 =
Submit