Dec-15-2017, 11:21 PM
Wavic,
To meet the first requirement for reading the lines 1-3 I was thinking the following:
and then to step to the next 3 lines to read and store would I just use another for loop with line =+1?
To meet the first requirement for reading the lines 1-3 I was thinking the following:
import itertools with open(students.txt, "r") as text_file: for line in itertools.islice(text_file,0,2):I am trying to work on taking the line and then putting it in a tuple for that I am thinking
my_tuple = [line]
and then to step to the next 3 lines to read and store would I just use another for loop with line =+1?