my current output [1,2,3,4,5,6] [2,1,3,4,5,6] [3,2,1,4,5,6] ... [6,5,4,3,2,1] all numbers are same but i want like this output only one [1,2,3,4,5,6] how can i do this
import os
import sys
numbers=[1,2,3,4,5,6]
x=[]
for i1 in numbers:
for i2 in numbers:
for i3 in numbers:
for i4 in numbers:
for i5 in numbers:
for i6 in numbers:
if i1 not in (i2,i3,i4,i5,i6) and i2 not in (i1,i3,i4,i5,i6) and i3 not in (i1,i2,i4,i5,i6) and i4 not in (i1,i2,i3,i5,i6) and i5 not in (i1,i2,i3,i4,i6) and i6 not in (i1,i2,i3,i4,i5):
x.append([i1,i2,i3,i4,i5,i6])
i=0
while i < len(x):
print x[i]
i=i+1