0

Why does the multiplication method lead to the list being nested with multiple iterations of the same list? E.g.
>>> foo = [[]]
>>> bar = foo * 4
>>> bar
[[], [], [], []]
>>> bar[0].append(1)
>>> bar
[[1], [1], [1], [1]]
>>> id(bar[0])
42445960
>>> id(bar[1])
42445960
>>> rows = 4
>>> bar = []
>>>