Skip to content

Commit b6f3a82

Browse files
author
Sakis Kasampalis
committed
Merge pull request faif#11 from betoboullosa/patch-1
Zip parameters were reversed
2 parents 68f5900 + 134c998 commit b6f3a82

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

iterator.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ def count_to(count):
55
"""Counts by word numbers, up to a maximum of five"""
66
numbers = ["one", "two", "three", "four", "five"]
77
# enumerate() returns a tuple containing a count (from start which defaults to 0) and the values obtained from iterating over sequence
8-
for pos, number in zip(numbers, range(count)):
8+
for pos, number in zip(range(count), numbers):
99
yield number
1010

1111
# Test the generator

0 commit comments

Comments
 (0)