I have two text files, in each file there are 10 values. Now I want to include these 10 values as two lists in one list and access index of the lists of list. But the problem is I get an error saying, "list indices must be integers, not tuple" . Any suggestion would be greatly appreciated.
in the first file I have 0.001 0.017 0.07 0.09 0.05 0.02 0.014 0.014 0.021 0.033
In the second file I have
0.001 0.01 0.0788 0.09 0.0599 0.0222 0.014 0.01422 0.0222 0.033
import numpy as np
d=[]
one = np.loadtxt('one.txt')
two=np.loadtxt('two.txt')
d.append(one)
d.append(two)
#I get this error "list indices must be integers, not tuple ", when
# I try to access the index of my lists inside the list
print (d[0,:])