|   | 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].
 Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.
 
                
                Copyright Sage, 2010. Some rights reserved under creative commons license. Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.