tab = [] for i in range(4): temp = [] for j in range(3): temp.append(L[4*i + j]) tab.append(temp)