index
(base) dv6@dv6:/tmp$ cat test.txt
1 2 3 4 5
6 7 8 9 10
with open('/tmp/test.txt','r') as fp:
It outputs below:
['1', '2', '3', '4', '5']
['6', '7', '8', '9', '10']
['']
Last updated
(base) dv6@dv6:/tmp$ cat test.txt
1 2 3 4 5
6 7 8 9 10
with open('/tmp/test.txt','r') as fp:
It outputs below:
['1', '2', '3', '4', '5']
['6', '7', '8', '9', '10']
['']
Last updated