I have a text file, I want to read this text file into 3 different arrays, array1 array2 and array3. the first paragraph gets put in array1, the second paragraph gets put in arr
Because I feel like showing off:
with open('data.txt') as f: f = list(f) a, b, c = (list(__import__('itertools').islice(f, i, None, 3)) for i in range(3))