All Questions
2 questions
2
votes
3
answers
482
views
possible unique combinations between between two arrays(of different size) in python?
arr1=['One','Two','Five'],arr2=['Three','Four']
like itertools.combinations(arr1,2) gives us ('OneTwo','TwoFive','OneFive')
I was wondering is there any way applying this to two different arrays.?I ...
2
votes
2
answers
1k
views
possible combinations of strings in an array in python?
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 ,...