we = [1,2,3,4]
for i in we:
for e in we:
print('('+str(i)+' - '+str(e)+')')
#del we[0]
This is the result:
(1 - 1)
(1 - 2)
(1 - 3)
(1 - 4)
(2 - 1)
(2 - 2)
(2 - 3)
(2 - 4)
(3 - 1)
(3 - 2)
(3 - 3)
(3 - 4)
(4 - 1)
(4 - 2)
(4 - 3)
(4 - 4)
But I do not want the same elements to repeat like I have (1 - 3)
so I do not want (3 - 1)
to show and so on.
I also need to use for loops in this