How can I define _SOME CODE_ in the next code fragment in order to get the results shown below?
vector = numpy.array([a,b,c,d])
for i in xrange(4):
print vector[_SOME CODE_ using i]
It sould give me those results:
[a,b,c]
[a,c,d]
[a,b,d]
[b,c,d]
The order is not important.
Answer for the edited question:
Answer for the original question: Here’s some random code producing the desired output:
I’ve got no idea if this is what you want — the requirement specification left some room for interpretation.