projects
/
swc-testing-nose.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
c04a0f1d43c26cf8eb16fb0bbcb31714e3a13957
[swc-testing-nose.git]
/
testing
/
mean.py
1
def mean(numlist):
2
try:
3
total = sum(numlist)
4
length = len(numlist)
5
except ValueError:
6
print "The number list was not a list of numbers."
7
except:
8
print "There was a problem evaluating the number list."
9
return total/length
10