Skip to content

Commit

Permalink
Merge pull request #14 from UW-Madison-ACI/reintroduce_flaw
Browse files Browse the repository at this point in the history
Reintroduce float flaw in mean function to facilitate instruction.
  • Loading branch information
Paul Wilson committed Aug 11, 2014
2 parents f079426 + 5e93c57 commit 3f3d209
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stats.py
Original file line number Diff line number Diff line change
@@ -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.")
Expand Down

0 comments on commit 3f3d209

Please sign in to comment.