Python 2D Jagged List

Descripción

Create a 2D jagged list with rows of variable length


File Template: ❌


Prefix

list2:jagged


Scopes

python


Snippet de código

${1:matrix} = [[] for _ in range(${2:rows})]  # 2D jagged list with variable row lengths