Это мой код:
check = open('test.txt', 'r')
for line in check:
field = (line.split())
print (field)
Он производит такой вывод:
>>>['test1', 'Cats', 'Dog']
>>>['test2', 'Zebra', 'Elephant']
Результат, который я хочу:
[['test1', 'Cats', 'Dog'], ['test2', 'Zebra', 'Elephant']]