Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

You can use list of lists:

z=[ [var(f'p_{k}{l}') for l in range(4)] for k in range(2)]

and access its elements like z[1][3].