human
Slicing a multidimensional list
assistant
Here is some code to get only first element in each of the innermost of the multidimensional list `listD`

[[[x[0]] for x in listD[i]] for i in range(len(listD))]

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.