arr=['one','two','three']
Result must be like this:
onetwo,twothree,onethree
itertools.permutations will not work in this situation.
we can do this by simply adding for loops and appending them ,that works for small arrays but takes time for big arrays.
I was wondering is there any way (like itertools.permutations)this can be achieved?