Hello all,
In the saddle points exercise the program keeps returning this error: TypeError: ‘int’ object is not subscriptable.
I don’t understand why, because the input is a nested list, not an integer.
But when I run this to test:
def saddle_points(matrix):
output = []
for x in matrix:
for y in x:
output.append(y)
return output
This keeps returning the error, even if I use only one loop, but in PyCharm this works fine.
Does anyone have a suggestion?
Thanks in advance,
Willem