if i have an nested list such as:
m=[[34,345,232],[23,343,342]]
if i write m.remove(345) it gives an error message saying elem
m.remove(345)
If you want to remove only by indexes you can use this method
m[0].pop(1)
by this you can specify only the index. This is helpful if you know only the position you want to remove.