結果 : permutations with repetition python