結果 : how to calculate permutations in python