kola #python from itertools import permutations def hi(str): permlist=permutations(str) for perm in list(permlist): print(”.join(perm)) if __name__ == “__main__”: str=input() hi(str) Log in to Reply
#python
from itertools import permutations
def hi(str):
permlist=permutations(str)
for perm in list(permlist):
print(”.join(perm))
if __name__ == “__main__”:
str=input()
hi(str)
give solution in python