def groupes(n): S = sudoku(n) # tous les sudokus d'ordre n G = [] for M in S: if associative(M) and not est_dans(M,G): G = G + [M] return G