Suppose I have indexed variables as
z=[var(f'p_{k}{l}') for k in range(2) for l in range(4)]
I can easily print z[6]. But what I want to use is it's two indices. How can I recover them ?
| 1 | initial version |
Suppose I have indexed variables as
z=[var(f'p_{k}{l}') for k in range(2) for l in range(4)]
I can easily print z[6]. But what I want to use is it's two indices. How can I recover them ?
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.