I have a list such as
x=[1,2,4,5,8,9]
What I wanted to implement is to get a list which contains combination of 4 digits out of the list. For example: Output should be
[1,2,4,5]
[2,3,4,8]
.....
[1,3,5,8]
....
Hence, I believe it will be 4^6
solutions. I have tried itertools combination with no success