Menggunakan fungsi permutasi Python dalam daftar
from itertools import permutations
a=permutations([1,2,3,4],2)
for i in a:
print(i)
Outrageous Ostrich
from itertools import permutations
a=permutations([1,2,3,4],2)
for i in a:
print(i)