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