In the below random array:
a = [[1,2,3,4],
[6,7,8,9]]
Could you please tell me how to remove element at a specific position. For example, how would I remove a[1][3]?
I understand list.pop is used for only list type DS here.
You should use del to remove an item at a specific index:
>>> a = [[1,2,3,4], [6,7,8,9]]
>>> del a[1][3]
>>> a
[[1, 2, 3, 4], [6, 7, 8]]
>>>
list.pop should only be used when you need to save the value you just removed.