Source code for kyu_4.permutations.permutations
"""
Solution for -. Permutations.
Created by Egor Kostan.
GitHub: https://github.com/ikostan
"""
[docs]
def permutations(string: str) -> list:
"""
Permutation function.
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.
:param string: str
:return: list
"""
for strg in string:
print(strg)
return []