Quick actions

cmd+k|ctrl+k

Navigation

Languages

Matrix

Snippet info

Language

Python

Visibility

public

Author

narutouzumakiramen18

Created

2026-05-06T05:24:00.954979Z

Updated

2026-05-06T05:24:00.954979Z

# 2d matrix
# we can create a 2d matrix using a square bracket inside another.

matrix = [
    [1,2,3],
    [2,3,4],
    [4,5,6],
    ]
    
print(matrix[2][1])
INFO