How do I pop an element in an 3D-list?
You want to use array[1][1].pop(1). pop only takes one argument, the position of the element to pop. The reason why your code was crashing is because you had [1], a one element list, and tried to access the second element with [1][1].
I have this 3D-list:
array = [[['a', 'b'], ['c', 'd']], [['e', 'f'], ['g', 'h']]]
When I want to print a specific element, for example with:
print(array[1][1][1])
I would get h.
But as soon as I want to pop this element with array.pop([1][1][1]), I just get an IndexError: IndexError: list index out of range