From 5e93c571d734d763a15e70e99d36676e0ba87d96 Mon Sep 17 00:00:00 2001 From: "Paul P.H. Wilson" Date: Mon, 11 Aug 2014 05:58:57 -0500 Subject: [PATCH] Reintroduce float flaw in mean function to facilitate instruction. --- stats.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stats.py b/stats.py index 5b30a5e..6033e19 100644 --- a/stats.py +++ b/stats.py @@ -1,7 +1,7 @@ def mean(vals): """Computes the mean from a list of values.""" try: - total = float(sum(vals)) + total = sum(vals) length = len(vals) except TypeError: raise TypeError("The list was not numbers.")