What is the problem with my code?

This is my code, kindly chceck it.

Can you tell me what i and idx are?

Do you realize that it is any subset and not just a set with 2 elements.

So for example, for numbers = {1, 2, 3, -6}

answer is β€˜Yes’.

Ok I understand. My bad

1 Like

I did it. Thanks for helping out !

1 Like

Great!!
It was all your effort, I just pointed out the obvious mistake.