Nested list: two dimensions : List Two Dimension « List « Python






Nested list: two dimensions

Nested list: two dimensions

matrix = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]

print matrix[1]
[4, 5, 6]

print matrix[1][1]

print matrix[2][0]

           
       








Related examples in the same category

1.Check a user name and PIN codeCheck a user name and PIN code