TypeError: unsupported operand type(s) for -: 'dict' and 'dict'

My out put is correct for every test case but i getting this error.
July 4, 2020 2:35 PM
My solution

same here. any body there who has the answer for above question?

I had the same error and it was bc I was returning the wrong type. I used the tolist() and got it right.

Here’s my solution