Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how do i access individual elements of matrix in python?

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

#accessing 1
one = num[0][0]
print(one)
 
PREVIOUS NEXT
Tagged: #access #individual #elements #matrix
ADD COMMENT
Topic
Name
7+5 =