I want to create an empty 2D list in python so in any row I can add multiple tuples as I want ex. [ [ (2,3)] , [ (4,5) ,(6,5) ,(9,0)] ] I only know that rows of the list will be n. and after that I can manually append tuples as per the question. so I tried to create 2D list using:
L = [ []*n ] # n is number of rows ex. n = 5
print(L) # It gives [[]] instead of [[], [], [], [], []]
Why?