projects
/
swc-testing-nose.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
moves testing into python, appropriately or not...
[swc-testing-nose.git]
/
python
/
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