Python 2D List (Fixed Size)

Descripción

Create a 2D list with fixed number of rows and columns initialized with None


File Template: ❌


Prefix

list2:fixed


Scopes

python


Snippet de código

${1:matrix} = [[None] * ${3:cols} for _ in range(${2:rows})]  # 2D list with fixed size