Utilisation de la fonction Python Permutations sur une liste avec une fonction supplémentaire

from itertools import permutations
print(len(list(permutations([1,2,3,4],4))))
Outrageous Ostrich