i have a list in Python
mylist = [0, 1, 2, 3, 4, 5]
where 0 is the start and 5 is the end. I wish to know if there a way to create all possible sequences between 0 and 5 such as:
mylist1 = [0, 2, 1, 3, 4, 5]
mylist2 = [0, 3, 2, 1, 4, 5]
mylist3 = [0, 4, 3, 2, 1, 5]
mylist4 = [0, 2, 1, 3, 4, 5]
mylist5 = [0, 3, 2, 1, 4, 5]
etc