So I got a list in python like this:
[1,2,3,4]
And I want the combinations between the number 3 with every number something like this:
[(1,3),(2,3),(3,4)]
Is there something I can use? I know there is something called itertools, but I'm kinda new so i'm not sure how to use it.
Thank you!
itertoolsfor this.[(1, 2), (1, 3), (1, 4), (2, 3), (2, 4), (3, 4)]?