answered 2 years ago
If you want permutations, then you can use Permutations generator:
Permutations
t = ['a','b','c','d'] for p in Permutations(t): print(p)