# If you know the index of the item you want, you can use the pop() method. It modifies the list and returns the removed item.
L = ['a', ['bb', 'cc', 'dd'], 'e']
x = L[1].pop(1)
print(L)
# Prints ['a', ['bb', 'dd'], 'e']
# removed item
print(x)
# Prints cc