Let A be a procedure. One of the output of the goal A(X, [1,2,3,4]) is X=[3,2,4,1]. What is name of the procedure? [CO4] Select one: a. membership b. insert c. permutation d. sublist code example
Example: python permutation
import itertools
a = [1, 2, 3]
n = 3
perm_iterator = itertools.permutations(a, n)
for item in perm_iterator:
print(item)