Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.71 KB | None | 0 0
  1. rstList = []
  2.  
  3. for el1 in range (6):
  4.     for el2 in range (6):
  5.         for el3 in range (6):
  6.             for el4 in range (6):
  7.                 for el5 in range (6):
  8.                     for el6 in range (6):
  9.                         if (el1 != el2 and el1 != el3 and el1 != el4 and el1 != el5 and el1 != el6 and el2 != el3 and el2 != el4 and el2 != el5 and el2 != el6 and el3 != el4 and el3 != el5 and el3 != el6 and el4 != el5 and el4 != el6 and el5 != el6):
  10.                             if not ([[el1], [el2], sorted([el3, el4, el5, el6])] in rstList) and ([[el2], [el1], sorted([el3, el4, el5, el6])]):
  11.                                 rstList.append([[el1], [el2], sorted([el3, el4, el5, el6])])
  12.  
  13. print (rstList)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement