From aeb0c84eb2fa61fbd7fc605c45499526aac30367 Mon Sep 17 00:00:00 2001 From: Andrew Collette Date: Sat, 16 Jul 2016 10:22:38 -0500 Subject: [PATCH] Fix bug, coerce to float --- sprint_tutorial/compute.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sprint_tutorial/compute.py b/sprint_tutorial/compute.py index b271f05..bc0eb43 100644 --- a/sprint_tutorial/compute.py +++ b/sprint_tutorial/compute.py @@ -3,9 +3,9 @@ def my_sum(x, y): - """ Compute the sum of 2 numbers + """ Compute the sum of 2 numbers, as a float. """ - return x + 2*y + return (x + y)*1.0 def my_power(a,n):