Merge pull request #34 from pipitone/swc_exercises
[swc-testing-nose.git] / testing / nose / 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