lst = [[[1, 2, 1],[1, 1, 3]], [[1, 5, 1], [5, 9, 10]], [[ 100, 25, 1], [ 6, 9, 23]]] a = [y[1] for x in lst for y in x]print(a)
Standard input is empty
[2, 1, 5, 9, 25, 9]
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!