I have a python list:
mylist = [1,2,3,4]
and I want to iterate through all possible combinations of these values without beeing dependant on the position, with a size of three, means I want these as iterations:
iteration: 111
iteration: 112
iteration: 113
iteration: 114
iteration: 221 # note, no 211, since the combination of these values already occured as 112
iteration: 222
iteration: 223
iteration: 224
.
.
.
I thought about iterating through the unique values of the list, but still I have not found a simple solution for this issue which, I atleast think, happens often. Maybe there is a nice numpy method for this. How can I achieve this?
Thanks!