I am trying to iterate over an array twice to have pairs of elements (e_i,e_j) but I only want the elements such that i < j.
Basically, what I want would look lik
Just use itertools.combinations(my_list, 2).
itertools.combinations(my_list, 2)