Permalink
Browse files

extra credit - used += to shorten code

  • Loading branch information...
mwarkentin committed Jan 9, 2011
1 parent 5425cb9 commit 12ed50b7b91b61c077b70d2faba76187b32c072f
Showing with 2 additions and 2 deletions.
  1. +2 −2 ex20.py
View
@@ -43,11 +43,11 @@ def print_a_line(line_count, f):
print_a_line(current_line, current_file)
# set current line to itself + 1
current_line = current_line + 1
current_line += 1
# call print_a_line function with current_line and current_file as arguments
print_a_line(current_line, current_file)
# set current line to itself + 1
current_line = current_line + 1
current_line += 1
# call print_a_line function with current_line and current_file as arguments
print_a_line(current_line, current_file)

0 comments on commit 12ed50b

Please sign in to comment.