From f714b422caba337b8acc05f398174c3c54590e83 Mon Sep 17 00:00:00 2001 From: Katy Huff Date: Wed, 30 Jan 2013 08:56:03 -0600 Subject: [PATCH] removes answers accidentally added. These were flotsam/jetsam from live coding in the bootcamp. --- python/testing/mean.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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 -- 2.26.2