Skip to content

Commit

Permalink
Fix broken code
Browse files Browse the repository at this point in the history
  • Loading branch information
janettecancode authored and hjwp committed May 28, 2016
1 parent facf21a commit f27876e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion challenges/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
def head(max_lines, filenames):
for fn in filenames:
with open(fn) as f:
for ix, line in f:
for ix, line in enumerate(f):
if ix >= max_lines:
return
print(line, end='')
Expand Down

0 comments on commit f27876e

Please sign in to comment.