I have a code that goes like this:
array = [['x', 3], ['y', 3]*2]
print(array)
Output:
>> [['x', 3], ['y', 3, 'y', 3]]
However, the result that I want to get is: [['x', 3], ['y', 3], ['y', 3]]
My question is, how do you duplicate a certain element of a multi-dimensional array using operators?