DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
8+9 =
Submit