| 1 | initial version |
Sage is giving you a hint that your naming scheme is ambiguous. In particular, 'x111' appears more than once, because it is both 'x'+'1'+'11' and 'x'+'11'+'1'. You can add a separator like an underscore to avoid this:
['x{}_{}'.format(i+1,j+1) for i in range(n) for j in range(m)]
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.