First time here? Check out the FAQ!

Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

asked 3 years ago

CyrilleP gravatar image

How to recover indices ?

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 ?