I have a system that takes in loans which contain a unique ID, a name and a book title. Layout is like this;
[[0, Name, title],[2, Name, title],[1, Name, title]]
Now i've been trying to find a way to remove one of the lists in the list, but only by ID. I want to be able to just give my program the 2, and it removes the entire list with that 2 in it. Note; the list with ID 2 is not always on index number 2, so listname.pop(ID) is not the solution either. It has to be some solution using listname.remove(), but with remove you have to give the entire list as an argument. Or am I missing something?