From 5f996d9405c37046bb02858d9613ed60d3de70f6 Mon Sep 17 00:00:00 2001 From: gilmrjc Date: Wed, 20 Jul 2016 20:07:32 -0500 Subject: [PATCH] Changing variable name (Closes #117) The variable name "fib" in test_iterators_are_a_type renamed to "total" to avoid confusion about what the function is doing. --- python3/koans/about_iteration.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/python3/koans/about_iteration.py b/python3/koans/about_iteration.py index 93d64504a..d232d07b8 100644 --- a/python3/koans/about_iteration.py +++ b/python3/koans/about_iteration.py @@ -8,12 +8,12 @@ class AboutIteration(Koan): def test_iterators_are_a_type(self): it = iter(range(1,6)) - fib = 0 + total = 0 for num in it: - fib += num + total += num - self.assertEqual(__ , fib) + self.assertEqual(__ , total) def test_iterating_with_next(self): stages = iter(['alpha','beta','gamma'])