Create a list of N empty lists in Python

In order to create a list of N empty lists in Python:

1
[[],[],[]...]

The following would not work, because each created empty list is indeed the same object, modifying one of them will impact all others. This can be verified by checking that they all share the same python object ids (id())

1
[[]] * N

One correct way of doing is the following:

1
[[] for _ in range(N)]