Let's say i have n arrays :
a = [1,2,3,4,5,6]
b = [0,3,5,7,9,10]
c = [3,3,5,6,7,8]
...
How to find a sum in these arrays that equals a given value X ?
I get there when I do this :
for i in a:
for j in b:
for k in c:
if i + j + k == X:
...
But it's hard-coded, how to do it with n arrays ?
a+b+chas no sense - it will concatenate the lists.