Skip to content

Commit 7c52351

Browse files
gilmrjcmpirnat
authored andcommitted
Changing variable name (Closes #117) (#134)
The variable name "fib" in test_iterators_are_a_type renamed to "total" to avoid confusion about what the function is doing.
1 parent 385e952 commit 7c52351

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

python3/koans/about_iteration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@ class AboutIteration(Koan):
88
def test_iterators_are_a_type(self):
99
it = iter(range(1,6))
1010

11-
fib = 0
11+
total = 0
1212

1313
for num in it:
14-
fib += num
14+
total += num
1515

16-
self.assertEqual(__ , fib)
16+
self.assertEqual(__ , total)
1717

1818
def test_iterating_with_next(self):
1919
stages = iter(['alpha','beta','gamma'])

0 commit comments

Comments
 (0)