Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

average of a list in function with python

def lol(a):
	x = sum(a)/len(a)
	print(x)
lol([5,7,3,9,4])
Source by www.sanfoundry.com #
 
PREVIOUS NEXT
Tagged: #average #list #function #python
ADD COMMENT
Topic
Name
9+2 =