Code
from itertools import * from collections import Counter def permutationA(): for i in permutations([\'e\',\'f\'], 2): a = (\'\'.join(i));