Saddle points keeps returning TypeError: 'int' object is not subscriptable

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

It looks like you’re returning a list of integers. The tests expect a list of dicts.

I edited your post to add a codeblock to make it more readable.

Thank you!
I 'll try to solve the exercise in PyCharm and try again