projects
/
swc-testing-nose.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
7b419d6e1e869080a99431fa87c917a7ba0fb977
[swc-testing-nose.git]
/
testing
/
nose
/
exercises
/
mean.py
1
def mean(numlist):
2
try :
3
total = sum(numlist)
4
length = len(numlist)
5
except TypeError :
6
raise TypeError("The list was not numbers.")
7
except :
8
print "Something unknown happened with the list."
9
return total/length