I have a list-A and I want to create another list-B which contains N copies of list-A
I tried below
list_b = [list_a for _ in range(n)]
#creates copies of the list
from itertools import repeat
list_b = [list_a for _ in repeat(None,n)]
#creates copies of the list
Is there any way to do this without creating a copy of list_a ?