# Write a Python program to Permutation of a given string using inbuilt function # Function to find permutations of a given stringfrom itertools import permutations  def allPermutations(str):            # Get all permutations of string 'ABC'     permList = permutations(str)       # print all permutations     for perm in list(permList):         print (''.join(perm))        # Driver programif __name__ == "__main__":    str = 'ABC'    allPermutations(str)