Question: Write a function that takes in a list of 3 numbers and returns a list of all possible permutations of that list. (python)You can do

Write a function that takes in a list of 3 numbers and returns a list of all possible permutations of that list.

(python)You can do this by brute force and but also try using recursion. If you figure out a recursive solution, try to make it work for a list of n numbers.

def perm_list(myList): # YOUR CODE HERE raise NotImplementedError() #perm_list([1,2,3])

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!