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)]