How to | Work with Nested Lists
Nested lists are lists within a list; they are the principal structure for data in the Wolfram Language and allow for high-dimension arrays and ragged datasets as well as common uses such as matrices.
Create a list of lists to work with:
Matrices in the Wolfram Language are represented as nested lists. Note that each row corresponds to a sublist in the nested list:
Use [[]], the short form of the Part function, to get the second row:
Use Flatten to remove the nesting:
Display the flattened data as a column:
For comparison, to display the flattened data as a row, add {}: