For arbitrary length lists, you can use [ [] for _ in range(N) ]
Do not use [ [] ] * N, as that will result in the list containing the same list object N times
For arbitrary length lists, you can use [ [] for _ in range(N) ]
Do not use [ [] ] * N, as that will result in the list containing the same list object N times