A permutation, also called an “arrangement number” or “order”, is a rearrangement of the elements of an ordered list S into a one-to-one correspondence with S itself. A string of length n has n! permutation.
Input : str = 'ABC' Output : ABC ACB BAC BCA CAB CBA
ABC ACB BAC BCA CAB CBA
- Python | Ways to find all permutation of a string
- Inbuilt Data Structures in Python
- Python program to count upper and lower case characters without using inbuilt functions
- Permutation and Combination in Python
- Generate all permutation of a set in Python
- SymPy | Permutation.min() in Python
- SymPy | Permutation.max() in Python
- SymPy | Permutation.rmul() in Python
- SymPy | Permutation.rmul_with_af() in Python
- Python | SymPy Permutation.inversion_vector()
- SymPy | Permutation.rank() in Python
- SymPy | Permutation.is_Identity() in Python
- SymPy | Permutation.runs() in Python
- SymPy | Permutation.is_Singleton() in Python
- SymPy | Permutation.is_Empty() in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.