All Permutations

All Permutations

Étant donné une chaîne de caractères, renvoyez toutes les permutations possibles de ses caractères, classées par ordre alphabétique.

example

Entrée: Chaîne (str).

Sortie: table d'itération (Iterable) de chaînes de caractères (str).

Exemples:

assert list(string_permutations("ab")) == ["ab", "ba"]
assert list(string_permutations("abc")) == ["abc", "acb",...
You should be an authorized user in order to see the full description and start solving this mission.