Python version 2.7.13, main.py
import csv
with open(r"int.txt") as f:
reader = csv.reader(f, delimiter="\t")
d = list(reader)
print d[1][1]
int.txt file is as below
1 577 7
7 85 888
0 86 876
I want print d[1][1] to return 85, but it throws the following error.
sh-4.4$ python main.py
Traceback (most recent call last):
File "main.py", line 15, in <module>
print d[1][1]
IndexError: list index out of range
Any thoughts would be appreciated. I made sure to check that the text file has no blank lines, referencing similar questions.