DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR PYTHON
how to add all values in a list python without using sum function
def int_list(grades): #list is passed to the function summ = 0 for n in grades: summ += n print summ
Source by stackoverflow.com #
PREVIOUS
NEXT
Tagged:
#add
#values
#list
#python
#sum
#function
ADD COMMENT
Topic
COMMENT
Name
1+3 =
Submit