python returning rows and columns from a matrix string code example
Example: python returning rows and columns from a matrix string
array = [ [1, 2, 3], [4, 5, 6] ]
col2 = [ row[1] for row in array ]
print(col2)
array = [ [1, 2, 3], [4, 5, 6] ]
col2 = [ row[1] for row in array ]
print(col2)