projects
/
swc-testing-nose.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
testing/nose: Move example scripts into the examples/ subdirectory
[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