reviewing ex.15 to 26

This commit is contained in:
samialazar 2020-05-26 11:52:28 +02:00
commit d270952bf0
6 changed files with 59 additions and 22 deletions

View file

@ -6,17 +6,17 @@ script, input_file = argv
def print_all(f):
print(f.read())
print(f.read())
def rewind(f):
f.seek(0)
f.seek(0)
def print_a_line(line_count, f):
print(line_count, f.readline())
print(line_count, f.readline())
current_file = open(input_file)