This is continued from this thread: Python matrix, any solution?
Input
from numpy import * import numpy x=[[\'1\',\'7\'], [\'1.5
You are missing commas between the inner lists:
x = [['1', '7'], ['1.5', '8'], ['2', '5.5'], ['2', '9']]
The error message stemmed from Python seeing ['1','7']['1.5','8'] and trying to use the tuple ('1.5','8') as an index into the list ['1','7'].
['1','7']['1.5','8']
('1.5','8')
['1','7']