python Accept four characters from user and show them in all combinations. Such as if input is a b c d output will be b c a d b c d a b a c d code example
Example: how to get all possible combinations in python
all_combinations = [list(zip(each_permutation, list2)) for each_permutation in itertools.permutations(list1, len(list2))]