Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

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)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #python #returning #rows #columns #matrix #string
ADD COMMENT
Topic
Name
8+9 =