Source code for kyu_4.permutations.permutations

#  Created by Egor Kostan.
#  GitHub: https://github.com/ikostan
#  LinkedIn: https://www.linkedin.com/in/egor-kostan/


[docs]def permutations(string: str) -> list: """ creates all permutations of an input string and remove duplicates, if present. This means, you have to shuffle all letters from the input in all possible orders. """