diff --git a/problems/recursion/sum_cubes.py b/problems/recursion/sum_cubes.py index 5583c8c..0f14f0c 100644 --- a/problems/recursion/sum_cubes.py +++ b/problems/recursion/sum_cubes.py @@ -9,7 +9,7 @@ def sum_cubes(n): This function may not use any loops or list comprehensions. """ - pass + return (n ** 3) + sum_cubes(n - 1) ############################################################# @@ -91,4 +91,4 @@ def test_sum_cubes_19(): do_test_sum_cubes(81) def test_sum_cubes_20(): - do_test_sum_cubes(100) \ No newline at end of file + do_test_sum_cubes(100)