def computes(text):
file=open(text)
line=file.readlines()
for i in range(0,len(line)):
print(str(line[i][1]))
Output
[4, 4, 3, 4, 0]
[9, 7, 6, 8, 0]
[6, 6, 4, 2, 2]
[9, 10, 6, 8, 6]
[12, 9, 6, 9, 2]
[12, 12, 2, 4, 1]
[5, 6, 3, 4, 16]
[24, 21, 14, 16, 0]
[3, 2, 2, 5, 0]
[10, 10, 10, 0, 9]
4
9
6
9
1
1
5
2
3
1
What I'm trying to do, is loop through a text that has an array of lists inside and I am trying to print the number 12 but is only printing the first number, I am not sure where to go from here. How can I correct this?