python returning rows and columns from a matrix string

Solutions on MaxInterview for python returning rows and columns from a matrix string by the best coders in the world

we are a community of more than 2 million smartest coders
registration for
employee referral programs
are now open
get referred to google, amazon, flipkart and more
register now
  
pinned-register now
showing results for - "python returning rows and columns from a matrix string"
Hanna
17 Jan 2018
1array = [ [1, 2, 3], [4, 5, 6] ]
2col2 = [ row[1] for row in array ]
3print(col2)
4
similar questions