Source Code:
(back to article)
import itertools meine_liste = [1, 2, 3] ergebnis = list(itertools.permutations(meine_liste,2)) print(ergebnis)
Result:
Report an issue