From: Katy Huff Date: Wed, 30 Jan 2013 14:56:03 +0000 (-0600) Subject: removes answers accidentally added. These were flotsam/jetsam from live coding in... X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f714b422caba337b8acc05f398174c3c54590e83;p=swc-testing-nose.git removes answers accidentally added. These were flotsam/jetsam from live coding in the bootcamp. --- diff --git a/python/testing/mean.py b/python/testing/mean.py index e95841a..7b419d6 100644 --- a/python/testing/mean.py +++ b/python/testing/mean.py @@ -4,8 +4,6 @@ def mean(numlist): length = len(numlist) except TypeError : raise TypeError("The list was not numbers.") - except ZeroDivisionError : - raise ZeroDivisionError("Does your list have elements in it?") except : print "Something unknown happened with the list." - return float(total)/float(length) + return total/length